:root {
    --ink: #25231f;
    --muted: #6f6a61;
    --milk: #fbf8f1;
    --paper: #ffffff;
    --forest: #243f3a;
    --forest-soft: #dfe9e4;
    --clay: #a65f42;
    --saffron: #d7a846;
    --rose: #ead1c7;
    --line: rgba(37, 35, 31, .14);
    --shadow: 0 18px 50px rgba(37, 35, 31, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--milk);
    color: var(--ink);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
}

body.is-ltr {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    padding: 12px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 248, 241, .92);
    backdrop-filter: blur(16px);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
    text-decoration: none;
    font-weight: 800;
    color: var(--forest);
}

.brand-mark img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}

.brand-mark span,
.menu-card h4,
.contact-panel a,
.site-nav a {
    overflow-wrap: anywhere;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.site-nav a,
.ghost-link,
.solid-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a {
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover {
    color: var(--forest);
    background: var(--forest-soft);
}

.header-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ghost-link {
    border: 1px solid var(--line);
    color: var(--forest);
    background: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.ghost-link.inverse {
    color: #fff;
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .08);
}

.solid-link {
    border: 1px solid var(--forest);
    background: var(--forest);
    color: #fff;
    font-weight: 900;
}

.solid-link.large,
.ghost-link.large {
    min-height: 50px;
    padding-inline: 22px;
}

.hero {
    position: relative;
    min-height: 78svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 86px 32px 34px;
}

.hero-content {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero .eyebrow {
    color: var(--saffron);
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.contact-grid h2 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: 64px;
}

.hero-copy {
    max-width: 620px;
    margin: 20px 0 26px;
    color: rgba(255, 255, 255, .9);
    font-size: 20px;
}

.hero-facts {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 42px auto 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
}

.hero-facts div {
    min-height: 96px;
    padding: 18px;
    background: rgba(11, 15, 13, .42);
}

.hero-facts span {
    display: block;
    color: var(--saffron);
    font-size: 13px;
    font-weight: 900;
}

.hero-facts strong {
    display: block;
    margin-top: 6px;
    color: #fff;
    line-height: 1.45;
}

.section-inner {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.intro-band {
    padding: 54px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.intro-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 36px;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.contact-grid h2 {
    font-size: 40px;
}

.intro-grid p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.gallery-section,
.menu-section,
.contact-section {
    padding: 84px 0;
}

.menu-section {
    background: #f4f7f2;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-heading.split {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: start;
}

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

.gallery-tile {
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--forest-soft);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gallery-tile:hover img {
    transform: scale(1.045);
}

.menu-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.is-rtl .menu-tools {
    justify-content: flex-end;
}

.category-filter {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--forest);
    cursor: pointer;
    font-weight: 800;
}

.category-filter.active,
.category-filter:hover {
    border-color: var(--forest);
    background: var(--forest);
    color: #fff;
}

.menu-category {
    margin-top: 34px;
}

.menu-category[hidden] {
    display: none;
}

.menu-category h3 {
    margin: 0 0 16px;
    color: var(--forest);
    font-size: 26px;
}

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

.menu-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.menu-card img,
.menu-image-placeholder {
    width: 112px;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
}

.menu-image-placeholder {
    display: grid;
    place-items: center;
    padding: 8px;
    color: var(--forest);
    background: linear-gradient(135deg, var(--forest-soft), var(--rose));
    font-weight: 900;
    text-align: center;
}

.menu-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 16px;
}

.menu-card h4,
.menu-card p {
    margin: 0;
}

.menu-card h4 {
    font-size: 19px;
    line-height: 1.35;
}

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

.menu-card strong {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 5px;
    color: var(--forest);
    background: var(--forest-soft);
    font-size: 15px;
}

.contact-section {
    background: var(--forest);
    color: #fff;
}

.contact-section .section-kicker {
    color: var(--saffron);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 34px;
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.admin-field input,
.admin-field textarea,
.admin-field select {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    outline: 0;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(215, 168, 70, .2);
}

.form-button {
    width: fit-content;
    min-width: 140px;
    cursor: pointer;
    border-color: var(--saffron);
    background: var(--saffron);
    color: var(--ink);
}

.form-success {
    width: fit-content;
    margin: 18px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(215, 168, 70, .18);
    color: #fff;
    font-weight: 900;
}

.contact-panel {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
}

.contact-panel h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.contact-panel a {
    display: block;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .09);
    text-decoration: none;
}

.contact-panel a:hover {
    background: rgba(255, 255, 255, .16);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    color: var(--muted);
    background: var(--paper);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 10, 9, .84);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    width: min(920px, 92vw);
    max-height: 86vh;
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff;
}

.lightbox button {
    position: absolute;
    top: 18px;
    inset-inline-end: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.admin-body {
    background: #f5f7f4;
}

.admin-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 54px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-header h1,
.login-panel h1 {
    margin: 0;
    color: var(--forest);
    font-size: 34px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.admin-panel,
.login-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(37, 35, 31, .08);
}

.admin-panel {
    padding: 22px;
}

.admin-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

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

.stat-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--milk);
}

.stat-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.stat-box strong {
    display: block;
    margin-top: 6px;
    color: var(--forest);
    font-size: 28px;
}

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

.admin-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-field.wide {
    grid-column: 1 / -1;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
    padding: 10px 12px;
    border-color: var(--line);
}

.admin-field input[type="file"] {
    padding: 8px;
}

.links-editor {
    display: grid;
    gap: 10px;
}

.link-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr;
    gap: 10px;
}

.menu-editor-category {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.menu-editor-category:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.menu-editor-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.menu-editor-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfaf6;
}

.menu-thumb {
    display: grid;
    place-items: center;
    min-height: 96px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--forest-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.remove-field {
    align-content: end;
}

.remove-field input {
    width: 22px;
    height: 22px;
}

.menu-add-box {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 2px solid var(--forest-soft);
}

.menu-add-box h3 {
    margin: 0 0 14px;
    color: var(--forest);
    font-size: 22px;
}

.admin-submit {
    margin-top: 18px;
    border: 0;
    cursor: pointer;
}

.notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--forest-soft);
    color: var(--forest);
    font-weight: 900;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: start;
    vertical-align: top;
}

.admin-table th {
    color: var(--forest);
    background: var(--forest-soft);
}

.message-cell {
    max-width: 420px;
    white-space: pre-wrap;
}

.login-wrap {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(430px, 100%);
    padding: 28px;
}

.login-panel form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .is-rtl .site-nav {
        justify-content: flex-end;
    }

    .hero h1 {
        font-size: 48px;
    }

    .section-heading.split,
    .intro-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .site-header {
        padding: 12px 18px;
    }

    .brand-mark {
        min-width: 0;
    }

    .brand-mark span {
        max-width: 180px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .ghost-link,
    .header-actions .solid-link {
        flex: 1;
    }

    .hero {
        min-height: 76svh;
        padding: 54px 20px 24px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-copy {
        font-size: 18px;
    }

    .hero-actions a {
        flex: 1;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .section-inner {
        width: min(1120px, calc(100% - 32px));
    }

    .gallery-section,
    .menu-section,
    .contact-section {
        padding: 58px 0;
    }

    .intro-grid h2,
    .section-heading h2,
    .contact-grid h2 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .menu-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .menu-card img,
    .menu-image-placeholder {
        width: 96px;
    }

    .link-row {
        grid-template-columns: 1fr;
    }

    .menu-editor-row,
    .menu-item-fields {
        grid-template-columns: 1fr;
    }

    .menu-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .site-footer,
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
