@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/menu/dm-sans-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/menu/playfair-display-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/menu/playfair-display-italic-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/menu/noto-kufi-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
    --accent: #8c2904;
    --ink: #27211e;
    --paper: #f5f1e9;
    --muted: #726c66;
    --line: rgba(39, 33, 30, .16);
    --sans: 'DM Sans', 'Noto Kufi Arabic', Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;
    --header-height: 72px;
    --category-height: 58px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--category-height) + 20px); }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0 4.5vw;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    transition: background-color 180ms ease, color 180ms ease;
}
.site-header.scrolled { height: var(--header-height); background: rgba(255, 255, 255, .97); color: var(--ink); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; }
.brand > img { width: 42px; height: 42px; object-fit: contain; filter: brightness(0) invert(1); flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.brand-copy strong { font-size: 16px; font-weight: 600; letter-spacing: .13em; line-height: 1.15; text-transform: uppercase; }
.brand-copy > span { font-size: 8px; letter-spacing: .2em; text-transform: uppercase; }
.site-header.scrolled .brand > img { filter: none; }
.desktop-nav { font-size: 13px; }
.desktop-nav a { display: block; padding: 12px 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.dashboard-link { font-size: 11px; }
.icon-button, .language-button { min-width: 44px; height: 44px; border: 0; background: transparent; }
.icon-button { display: grid; place-items: center; }
.search-icon { width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; display: block; position: relative; flex-shrink: 0; }
.search-icon::after { content: ''; position: absolute; width: 7px; height: 1.5px; background: currentColor; inset-inline-end: -5px; bottom: -2px; transform: rotate(45deg); }
.language-switcher { position: relative; }
.language-button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 8px; font-size: 11px; letter-spacing: .12em; }
.chevron { width: 6px; height: 6px; border-inline-end: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.language-options { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); width: 190px; padding: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 15px 40px rgba(39, 33, 30, .14); }
.language-option { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; border: 0; background: transparent; text-align: start; }
.language-option small { color: var(--muted); font-size: 9px; }
.language-option[aria-pressed='true'] { background: var(--paper); color: var(--accent); }

.menu-hero { height: max(720px, 100svh); min-height: 680px; position: relative; color: #fff; overflow: hidden; }
.hero-image, .hero-shade { position: absolute; inset: 0; height: 100%; }
.hero-image { object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(24, 18, 14, .62), rgba(24, 18, 14, .18) 65%), linear-gradient(0deg, rgba(24, 18, 14, .42), transparent 50%); }
.hero-content { position: absolute; inset-inline-start: 8.5vw; top: 50%; width: min(780px, 78%); transform: translateY(-15%); }
.eyebrow { margin: 0 0 24px; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero-content h1 { margin: 0; font: 500 clamp(4rem, 7.5vw, 8.2rem)/.94 var(--serif); letter-spacing: -.045em; }
.hero-content h1 em { font-weight: 500; }
.hero-copy { width: min(470px, 100%); font-size: 16px; line-height: 1.7; margin: 30px 0 0; }
.scroll-note { position: absolute; inset-inline-start: 8.5vw; bottom: 38px; display: flex; align-items: center; gap: 20px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.scroll-note > span:last-child { font-size: 20px; }
.hero-stamp { position: absolute; inset-inline-end: 5vw; bottom: 42px; width: 120px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; transform: rotate(-10deg); text-align: center; }
.hero-stamp > span { font-size: 7px; text-transform: uppercase; letter-spacing: .13em; }
.hero-stamp strong { font: 500 15px var(--serif); }

.menu-category-bar { position: sticky; top: var(--header-height); height: var(--category-height); background: #fff; border-block: 1px solid var(--line); z-index: 80; scroll-margin-top: calc(0px - var(--category-height) - 20px); }
.category-inner { height: 100%; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 7vw; gap: 10px; }
.category-inner::-webkit-scrollbar { display: none; }
.category-link { flex-shrink: 0; display: flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--line); padding: 0 17px; text-transform: uppercase; white-space: nowrap; font-size: 9px; letter-spacing: .14em; }
.category-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu-main { padding: 45px 7vw 55px; }
.menu-section { padding: 78px 0 100px; border-bottom: 1px solid var(--line); }
.menu-section:last-child { border-bottom: 0; padding-bottom: 0; }
.category-title { display: grid; grid-template-columns: 55px minmax(0, 1fr); gap: 0; margin-bottom: 44px; }
.category-number { font-size: 10px; color: var(--accent); padding-top: 13px; }
.category-title h2 { font: 500 43px/1.2 var(--serif); margin: 0 0 12px; }
.category-title p { margin: 0; color: var(--muted); font-size: 13px; }
.product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 7vw; }
.menu-product { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 21px; border-top: 1px solid var(--line); padding: 21px 0; cursor: pointer; }
.product-thumb { width: 112px; height: 112px; overflow: hidden; position: relative; background: var(--paper); }
.product-thumb img { height: 100%; transition: transform 220ms cubic-bezier(.23, 1, .32, 1); }
.product-thumb .product-placeholder { object-fit: contain; padding: 28px; opacity: .55; }
.product-tag { position: absolute; inset-inline-end: 5px; top: 5px; background: var(--accent); color: #fff; padding: 5px 7px; font-size: 8px; }
.product-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 15px; padding: 8px 0; }
.product-name { font: 500 20px/1.25 var(--serif); margin: 0 0 8px; overflow-wrap: anywhere; }
.product-description { font-size: 11px; line-height: 1.55; margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { text-align: end; white-space: nowrap; font-size: 10px; font-weight: 500; padding-top: 4px; }
.menu-empty { padding: 70px 0; text-align: center; }
.menu-empty h2 { font: 500 43px var(--serif); margin: 0 0 16px; }
.menu-empty p { color: var(--muted); max-width: 540px; margin-inline: auto; }

.menu-footer { padding: 52px 7vw 25px; background: var(--accent); color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1fr) 1fr auto; align-items: end; gap: 40px; padding-bottom: 48px; }
.footer-hours { margin: 0; }
.footer-hours .eyebrow { display: block; margin-bottom: 7px; font-size: 8px; opacity: .7; }
.footer-hours strong { font: 500 25px var(--serif); }
.back-top { display: flex; align-items: center; gap: 14px; font-size: 8px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.back-top b { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .4); display: grid; place-items: center; font-size: 15px; }
.footer-meta { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 22px; display: flex; justify-content: space-between; gap: 25px; font-size: 9px; color: rgba(255, 255, 255, .8); }
.footer-meta a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.menu-footer :focus-visible, .site-header:not(.scrolled) :focus-visible { outline-color: #fff; }

dialog { border: 0; color: var(--ink); padding: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(24, 18, 14, .65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 1; inset-inline-end: 4vw; top: 30px; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; font-size: 28px; line-height: 1; }
.search-dialog { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: #f7f4ed; overflow-y: auto; }
.search-box { width: min(900px, 86vw); margin: 18vh auto 0; padding-bottom: 60px; }
.search-field { display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--ink); padding: 5px 6px 19px; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: 500 clamp(2rem, 5vw, 4.5rem) var(--serif); color: var(--ink); }
.search-field input::placeholder { color: #827970; }
.search-field:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.search-hint { color: var(--muted); font-size: 12px; margin-top: 18px; }
.search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; margin-top: 28px; }
.search-result { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 15px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: start; }
.search-result img { width: 76px; height: 76px; background: var(--paper); }
.search-result img.product-placeholder { padding: 18px; object-fit: contain; }
.search-result small { display: block; margin-bottom: 5px; color: var(--accent); font-size: 8px; letter-spacing: .1em; }
.search-result strong { font: 500 19px/1.2 var(--serif); overflow-wrap: anywhere; }
.search-result b { font-size: 10px; font-weight: 500; white-space: nowrap; }
.search-empty { padding: 35px 0; color: var(--muted); }
.details-dialog { position: fixed; inset-block: 0; inset-inline-start: auto; inset-inline-end: 0; margin: 0; width: min(1050px, 88vw); height: 100dvh; background: #fff; }
.details-layout { display: grid; grid-template-columns: 1.05fr 1fr; height: 100%; }
.details-image { min-height: 0; background: var(--paper); }
.details-image img { height: 100%; }
.details-image img.product-placeholder { object-fit: contain; padding: 22%; opacity: .5; }
.details-copy { padding: 16vh 4vw 50px; display: flex; flex-direction: column; overflow-y: auto; }
.details-copy .eyebrow { color: var(--accent); font-size: 9px; }
.details-copy h2 { font: 500 clamp(2.5rem, 4vw, 4.8rem)/1.02 var(--serif); letter-spacing: -.035em; margin: 0 0 25px; overflow-wrap: anywhere; }
.details-description { margin: 0; line-height: 1.8; color: var(--muted); font-size: 14px; white-space: pre-line; }
.details-duration { border-top: 1px solid var(--line); margin-top: 35px; padding-top: 25px; }
.details-duration .eyebrow { margin-bottom: 8px; }
.details-duration p { margin: 0; }
.details-price { margin-top: auto; padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.details-price .eyebrow { margin: 0; }
.details-price strong { font: 500 25px var(--serif); }

@media (hover: hover) and (pointer: fine) {
    .menu-product:hover .product-thumb img { transform: scale(1.035); }
    .menu-product:hover .product-name, .search-result:hover strong { color: var(--accent); }
    .language-option:hover { background: var(--paper); }
    .category-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
}
.icon-button:active, .language-button:active, .dialog-close:active { transform: scale(.97); }

html[dir='rtl'] body { font-family: 'Noto Kufi Arabic', 'DM Sans', Arial, sans-serif; }
html[dir='rtl'] :is(.hero-content h1, .category-title h2, .product-name, .menu-empty h2, .details-copy h2, .search-field input, .search-result strong) { font-family: 'Noto Kufi Arabic', sans-serif; line-height: 1.5; letter-spacing: 0; }
html[dir='rtl'] .hero-content h1 { font-size: clamp(2.8rem, 5.8vw, 6rem); }
html[dir='rtl'] .hero-content h1 em { font-style: normal; }
html[dir='rtl'] .hero-shade { background: linear-gradient(-90deg, rgba(24, 18, 14, .62), rgba(24, 18, 14, .18) 65%), linear-gradient(0deg, rgba(24, 18, 14, .42), transparent 50%); }
html[dir='rtl'] .category-link { letter-spacing: 0; }

@media (max-width: 1100px) {
    .product-copy { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .product-price { text-align: start; }
    .brand-copy strong { font-size: 14px; }
}

@media (max-width: 900px) {
    :root { --header-height: 64px; }
    .site-header { height: 68px; padding: 0 20px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .brand { gap: 8px; }
    .brand > img { width: 32px; height: 32px; }
    .brand-copy strong { font-size: 12px; letter-spacing: .1em; }
    .brand-copy > span { font-size: 7px; letter-spacing: .13em; }
    .desktop-nav { display: none; }
    .header-actions { gap: 6px; }
    .dashboard-link { display: none; }
    .language-options { width: 180px; }
    .menu-hero { height: clamp(460px, 58svh, 540px); min-height: 460px; }
    .hero-image { object-position: 58% center; }
    .hero-content { inset-inline: 24px; width: auto; top: 54%; transform: none; }
    .hero-content h1 { font-size: clamp(2.9rem, 13vw, 4rem); line-height: .95; }
    .hero-content .eyebrow { margin-bottom: 14px; font-size: 9px; }
    .hero-copy { font-size: 12px; line-height: 1.65; margin-top: 18px; max-width: 320px; }
    .hero-stamp, .scroll-note { display: none; }
    .category-inner { padding: 0 15px; }
    .category-link { min-height: 36px; }
    .menu-main { padding: 8px 20px 18px; }
    .menu-section { padding: 24px 0; }
    .menu-section:first-child { padding-top: 18px; }
    .category-title { grid-template-columns: 35px minmax(0, 1fr); margin-bottom: 28px; }
    .category-title h2 { font-size: 32px; margin-bottom: 9px; }
    .category-title p { font-size: 11px; line-height: 1.6; }
    .product-list { column-gap: 12px; }
    .menu-product { display: block; padding: 12px 0 24px; }
    .product-thumb { width: 100%; height: auto; aspect-ratio: 1; }
    .product-thumb img { position: absolute; inset: 0; }
    .product-thumb .product-placeholder { padding: 28%; }
    .product-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 2px 0; }
    .product-name { font-size: 18px; line-height: 1.2; margin-bottom: 6px; }
    .product-description { font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; }
    .product-price { padding-top: 0; }
    .menu-empty { padding: 48px 0; }
    .menu-footer { padding: 38px 20px 22px; }
    .footer-main { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding-bottom: 35px; }
    .footer-hours { grid-column: 1 / -1; grid-row: 2; }
    .back-top > span { display: none; }
    .footer-meta { display: block; font-size: 9px; line-height: 1.8; }
    .footer-meta > span { display: block; margin-top: 6px; }
    .search-box { width: calc(100% - 40px); margin-top: 110px; }
    .search-results { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
    .search-result { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; }
    .search-result img { width: 64px; height: 64px; }
    .search-result strong { font-size: 17px; }
    .dialog-close { inset-inline-end: 20px; top: 20px; }
    .details-dialog { inset-block-start: auto; inset-block-end: 0; width: 100%; height: min(88dvh, 780px); }
    .details-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 40%) minmax(0, 1fr); }
    .details-image img { object-position: center; }
    .details-image img.product-placeholder { padding: clamp(24px, 10vw, 72px); }
    .details-copy { padding: 25px 24px; }
    .details-copy .eyebrow { margin-bottom: 12px; }
    .details-copy h2 { font-size: 34px; margin-bottom: 16px; }
    .details-description { font-size: 12px; }
    .details-duration { margin-top: 20px; padding-top: 16px; }
    .details-price { padding-top: 25px; }
    html[dir='rtl'] .hero-content { top: 40%; }
    html[dir='rtl'] .hero-content h1 { font-size: clamp(1.9rem, 7.5vw, 3rem); }
    html[dir='rtl'] .product-name { font-size: 15px; }
    html[dir='rtl'] .category-title h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0ms !important; }
    .menu-product:hover .product-thumb img, .icon-button:active, .language-button:active, .dialog-close:active { transform: none; }
}

@media print {
    .site-header, .menu-hero, .menu-category-bar, .back-top, dialog { display: none; }
    .menu-main { padding: 0; }
    .menu-section { padding: 20px 0; }
    .menu-product { break-inside: avoid; }
    .menu-footer { color: var(--ink); background: #fff; padding: 20px 0; }
}
