:root {
    --brand: #b8914b;
    --brand-dark: #8c692e;
    --gold: #c6a15b;
    --gold-soft: #ead7ad;
    --ink: #221a13;
    --espresso: #17120d;
    --muted: #776b60;
    --soft: #f6f0e6;
    --ivory: #fffaf1;
    --card: #fffdf8;
    --line: rgba(104, 77, 44, .16);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: "Manrope", "Noto Kufi Arabic", Arial, sans-serif;
}

.menu-page {
    background:
        radial-gradient(circle at 8% 7%, rgba(198, 161, 91, .10), transparent 24rem),
        radial-gradient(circle at 92% 33%, rgba(105, 77, 45, .07), transparent 22rem),
        linear-gradient(180deg, var(--menu-bg, #f5efe5) 0%, #fffaf1 32%, #f8f1e6 100%);
    min-height: 100vh;
}

.hero-section { padding: 22px 0 8px; }

.hero-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)),
        linear-gradient(135deg, #17120d 0%, #241a11 52%, #100d09 100%);
    border: 1px solid rgba(215, 180, 109, .28);
    border-radius: 34px 34px 90px 90px;
    box-shadow: 0 26px 65px rgba(41, 29, 17, .22);
    color: #fff8e9;
    min-height: 430px;
    overflow: hidden;
    position: relative;
}

.hero-card:before,
.hero-card:after {
    border: 1px solid rgba(198, 161, 91, .22);
    border-radius: 999px 999px 0 0;
    content: "";
    height: 420px;
    position: absolute;
    top: 88px;
    width: 260px;
}
.hero-card:before { left: -160px; transform: rotate(24deg); }
.hero-card:after { right: -160px; transform: rotate(-24deg); }

.hero-pattern {
    background-image:
        linear-gradient(30deg, rgba(198,161,91,.055) 12%, transparent 12.5%, transparent 87%, rgba(198,161,91,.055) 87.5%, rgba(198,161,91,.055)),
        linear-gradient(150deg, rgba(198,161,91,.055) 12%, transparent 12.5%, transparent 87%, rgba(198,161,91,.055) 87.5%, rgba(198,161,91,.055)),
        linear-gradient(30deg, rgba(198,161,91,.055) 12%, transparent 12.5%, transparent 87%, rgba(198,161,91,.055) 87.5%, rgba(198,161,91,.055)),
        linear-gradient(150deg, rgba(198,161,91,.055) 12%, transparent 12.5%, transparent 87%, rgba(198,161,91,.055) 87.5%, rgba(198,161,91,.055));
    background-position: 0 0, 0 0, 24px 42px, 24px 42px;
    background-size: 48px 84px;
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
    opacity: .8;
    pointer-events: none;
    position: absolute;
}

.hero-content {
    margin: 0 auto;
    max-width: 760px;
    padding: 62px 28px 74px;
    position: relative;
    z-index: 2;
}


.hero-logo {
    display: block;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.34));
    height: auto;
    margin: -20px auto 14px;
    max-width: 190px;
    position: relative;
    width: 42vw;
    z-index: 3;
}

.hero-ornament {
    align-items: center;
    color: var(--gold);
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}
.hero-ornament span { background: linear-gradient(90deg, transparent, var(--gold)); height: 1px; width: 64px; }
.hero-ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-ornament i { font-size: 10px; font-style: normal; }

.arabic-kicker {
    color: var(--gold-soft);
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: .04em;
    margin: 0 0 9px;
}

.eyebrow {
    color: #dcc28c;
    display: inline-block;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .25em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.eyebrow.dark { color: var(--brand-dark); }

.hero-card h1 {
    color: #fff8e9;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.3rem, 11vw, 6.8rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: .88;
    margin: 6px 0 18px;
    text-shadow: 0 8px 36px rgba(0,0,0,.24);
}

.hero-tagline {
    color: rgba(255,248,233,.76);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.28rem;
    font-style: italic;
    margin: 0 auto 25px;
    max-width: 560px;
}

.btn-pill { border-radius: 999px; font-weight: 700; padding: 12px 24px; }
.btn-gold {
    background: linear-gradient(135deg, #d6b675, #b4873f);
    border: 1px solid #dfc58d;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
    color: #17120d;
    letter-spacing: .025em;
}
.btn-gold:hover { background: #e1c58c; color: #17120d; transform: translateY(-1px); }

.section-heading { margin: 48px auto 26px; max-width: 720px; }
.section-heading h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1;
    margin: 3px 0 10px;
}
.section-heading p { color: var(--muted); font-size: .98rem; margin: 0 auto; max-width: 570px; }
.heading-mark { color: var(--gold); font-size: .86rem; margin-top: 16px; }

.category-nav-wrap {
    backdrop-filter: blur(14px);
    background: rgba(255, 250, 241, .9);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    margin: 0 -15px 34px;
    padding: 11px 15px;
    position: sticky;
    top: 0;
    z-index: 20;
}
.category-nav { display: flex; gap: 9px; overflow-x: auto; padding: 1px 0 3px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-nav::-webkit-scrollbar { display: none; }
.category-pill {
    align-items: center;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(140,105,46,.2);
    border-radius: 999px;
    color: #4b3a29;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .86rem;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    text-decoration: none;
    white-space: nowrap;
}
.category-pill:hover,
.category-pill.active { background: #21170f; border-color: #21170f; box-shadow: 0 8px 20px rgba(31,22,15,.14); color: #f2dbac; text-decoration: none; }

.menu-category { scroll-margin-top: 82px; }
.category-heading { align-items: center; display: flex; gap: 12px; margin: 8px 0 18px; }
.category-heading h3 {
    color: #2a1d12;
    flex: 0 0 auto;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -.025em;
    margin: 0;
}
.category-number { color: var(--gold); font-size: .65rem; }
.category-line { background: linear-gradient(90deg, rgba(153,115,58,.36), transparent); height: 1px; width: 100%; }

.menu-grid { align-items: stretch; }
.menu-card {
    align-items: stretch;
    background: rgba(255,253,248,.94);
    border: 1px solid rgba(117, 88, 51, .14);
    border-radius: 26px;
    box-shadow: 0 14px 38px rgba(63, 45, 28, .075);
    display: flex;
    min-height: 176px;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.menu-card:after {
    border: 1px solid rgba(198,161,91,.20);
    border-radius: 22px;
    content: "";
    inset: 5px;
    pointer-events: none;
    position: absolute;
}
.menu-card:hover { border-color: rgba(166,126,61,.28); box-shadow: 0 20px 48px rgba(63,45,28,.12); transform: translateY(-2px); }
.menu-card-image-wrap { background: #eae0d0; flex: 0 0 176px; min-height: 176px; overflow: hidden; position: relative; }
.menu-card-image { display: block; height: 100%; min-height: 176px; object-fit: cover; transition: transform .45s ease; width: 100%; }
.menu-card:hover .menu-card-image { transform: scale(1.045); }
.price-badge {
    background: rgba(25,18,12,.92);
    border: 1px solid rgba(224,190,124,.48);
    border-radius: 999px;
    bottom: 11px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    color: #efd79f;
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    left: 11px;
    line-height: 1;
    padding: 8px 10px;
    position: absolute;
    white-space: nowrap;
    z-index: 2;
}
.menu-card-body { background: transparent; display: block; flex: 1 1 auto; min-width: 0; padding: 24px 24px 22px; position: relative; z-index: 2; }
.menu-title-row { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 10px; }
.menu-title-row h3 {
    color: #2a1d12;
    display: block;
    flex: 1 1 auto;
    font-family: "Cormorant Garamond", "Noto Kufi Arabic", Georgia, serif;
    font-size: 1.46rem;
    font-weight: 700;
    letter-spacing: -.018em;
    line-height: 1.08;
    margin: 0;
    min-width: 0;
}
.menu-price-text { color: var(--brand-dark); flex: 0 0 auto; font-size: .9rem; font-weight: 800; padding-top: 3px; white-space: nowrap; }
.menu-description { color: #776b60; display: block; font-size: .88rem; line-height: 1.65; margin: 0; visibility: visible; }

.empty-state {
    background: rgba(255,253,248,.95);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 45px rgba(58,42,27,.08);
    padding: 54px 24px;
}
.empty-state h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 700; }
.empty-state p { color: var(--muted); }
.empty-arch { border: 1px solid rgba(181,140,68,.4); border-radius: 50px 50px 8px 8px; color: var(--gold); display: grid; height: 72px; margin: 0 auto 20px; place-items: center; width: 58px; }

.site-footer { background: #17120d; border-top: 1px solid rgba(198,161,91,.28); color: rgba(255,248,233,.72); padding: 34px 0 28px; }
.site-footer strong { color: #f0d79f; display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.65rem; margin-bottom: 5px; }
.footer-mark { color: #b8914b; font-size: .65rem; margin-bottom: 8px; }
.footer-arabic { color: rgba(235,211,164,.7); font-family: "Noto Kufi Arabic", sans-serif; font-size: .72rem; }
.footer-credit { color: rgba(255,255,255,.38); font-size: .69rem; }

/* Admin retains the same workflow, with matching premium colors. */
.admin-body { background: #f6f1e8; }
.admin-shell { min-height: 100vh; }
.admin-topbar { background: #17120d; border-bottom: 1px solid rgba(198,161,91,.32); color: #fff8e9; padding: 14px 0; }
.admin-topbar a { color: rgba(255,248,233,.82); }
.admin-topbar a:hover { color: #e4c78f; text-decoration: none; }
.admin-card { background: #fffdf8; border: 1px solid #e6ddcf; border-radius: 18px; box-shadow: 0 12px 35px rgba(58,42,27,.06); }
.stat-card { padding: 24px; }
.stat-card .stat-number { font-size: 2.3rem; font-weight: 850; letter-spacing: -.06em; margin: 0; }
.stat-card .stat-label { color: #7b6f63; font-size: .76rem; font-weight: 700; letter-spacing: .08em; margin: 0; text-transform: uppercase; }
.table-img { background: #eee5d9; border-radius: 10px; height: 48px; object-fit: cover; width: 62px; }
.login-card { margin: 8vh auto; max-width: 420px; }
.color-text-input { max-width: 160px; }
.color-picker { border: 1px solid #ced4da; border-radius: 10px; height: 42px; width: 70px; }
.admin-item-card { overflow: hidden; }
.admin-item-thumb { background: #eee5d9; border-radius: 14px; display: block; height: 96px; object-fit: cover; width: 100%; }
.admin-meta-label { color: #7b6f63; font-size: .72rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 2px; text-transform: uppercase; }
.admin-action-buttons { align-items: stretch; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.admin-action-buttons form { display: inline-block; margin: 0; }
.admin-action-buttons .btn { min-width: 112px; }
.admin-item-head { border-bottom: 1px solid #ece3d8; padding-bottom: 14px; }
.admin-price-value { color: var(--brand-dark); font-size: 1.05rem; }
.price-input-group .input-group-text { background: #f7f0e3; color: var(--brand-dark); font-weight: 900; justify-content: center; min-width: 56px; }
.settings-save-bar { align-items: center; background: #faf6ef; border: 1px solid #e6ddcf; border-radius: 16px; display: flex; gap: 14px; justify-content: space-between; padding: 14px; }
.btn-primary { background-color: #8c692e; border-color: #8c692e; }
.btn-primary:hover, .btn-primary:focus { background-color: #705121; border-color: #705121; }
.form-control:focus { border-color: #b8914b; box-shadow: 0 0 0 .2rem rgba(184,145,75,.16); }

@media (max-width: 991.98px) {
    .hero-card { min-height: 390px; }
    .hero-content { padding-top: 54px; }
    .admin-action-buttons { justify-content: flex-start; width: 100%; }
}

@media (max-width: 767.98px) {
    .hero-card { border-radius: 28px 28px 64px 64px; }
    .category-heading h3 { font-size: 1.9rem; }
    .admin-action-buttons { justify-content: flex-start; }
    .admin-action-buttons .btn, .admin-action-buttons form { flex: 1 1 auto; }
    .admin-action-buttons .btn { display: block; width: 100%; }
}

@media (max-width: 575.98px) {
    .hero-section { padding-top: 12px; }
    .hero-card { border-radius: 24px 24px 52px 52px; min-height: 360px; }
    .hero-content { padding: 38px 20px 54px; }
    .hero-logo { margin-top: -10px; max-width: 145px; width: 40vw; }
    .hero-card h1 { font-size: clamp(3.15rem, 18vw, 5rem); }
    .hero-tagline { font-size: 1.08rem; }
    .section-heading { margin-top: 36px; }
    .section-heading h2 { font-size: 2.7rem; }
    .category-nav-wrap { margin-bottom: 25px; }
    .category-heading h3 { font-size: 1.72rem; }
    .menu-card { min-height: 142px; border-radius: 22px; }
    .menu-card:after { border-radius: 18px; }
    .menu-card-image-wrap { flex-basis: 118px; min-height: 142px; }
    .menu-card-image { min-height: 142px; }
    .menu-card-body { padding: 17px 16px 16px; }
    .menu-title-row { display: block; margin-bottom: 7px; }
    .menu-title-row h3 { font-size: 1.23rem; }
    .menu-price-text { display: block; margin: 4px 0 7px; padding: 0; }
    .menu-description { font-size: .79rem; line-height: 1.5; }
    .price-badge { bottom: 9px; font-size: .7rem; left: 9px; padding: 7px 8px; }
    .settings-save-bar { align-items: stretch; flex-direction: column; position: sticky; top: 10px; z-index: 11; }
    .settings-save-bar .btn { width: 100%; }
    .admin-action-buttons { flex-direction: row; }
    .admin-action-buttons .btn, .admin-action-buttons form { flex: 1 1 130px; }
}

/* Decorative Khaleeji ambience beside the scrolling menu.
   Purely visual: it never affects menu/card sizing or clicks. */
#menu {
    isolation: isolate;
    position: relative;
}

#menu::before,
#menu::after {
    background:
        radial-gradient(circle at 50% 28px, rgba(184,145,75,.34) 0 2px, transparent 2.5px),
        linear-gradient(45deg, transparent 43%, rgba(184,145,75,.18) 44% 46%, transparent 47% 53%, rgba(184,145,75,.18) 54% 56%, transparent 57%),
        linear-gradient(-45deg, transparent 43%, rgba(184,145,75,.12) 44% 46%, transparent 47% 53%, rgba(184,145,75,.12) 54% 56%, transparent 57%);
    background-size: 56px 56px, 56px 56px, 56px 56px;
    content: "";
    opacity: .72;
    pointer-events: none;
    position: absolute;
    top: 170px;
    bottom: 10px;
    width: 74px;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}

#menu::before {
    left: -88px;
    border-right: 1px solid rgba(184,145,75,.13);
}

#menu::after {
    right: -88px;
    border-left: 1px solid rgba(184,145,75,.13);
    transform: scaleX(-1);
}

@media (max-width: 1299.98px) {
    #menu::before { left: -52px; width: 42px; }
    #menu::after { right: -52px; width: 42px; }
}

@media (max-width: 1099.98px) {
    #menu::before,
    #menu::after {
        opacity: .42;
        width: 30px;
    }
    #menu::before { left: -20px; }
    #menu::after { right: -20px; }
}

@media (max-width: 767.98px) {
    .menu-page { overflow-x: hidden; }
    #menu::before,
    #menu::after {
        background-size: 42px 42px, 42px 42px, 42px 42px;
        opacity: .28;
        top: 150px;
        width: 20px;
    }
    #menu::before { left: -5px; }
    #menu::after { right: -5px; }
}
