@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #201c17;
  --dark: #171613;
  --paper: #f8f5ed;
  --white: #fffcf4;
  --muted: #62594c;
  --gold: #edbd72;
  --line: #ded7c8;
  --green: #49543a;
  --radius: 16px;
  font-family: Tajawal, "Noto Sans Arabic", Tahoma, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #936318; outline-offset: 4px; }
::selection { color: var(--dark); background: var(--gold); }

.container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--ink);
}

.site-header {
  background: var(--dark);
  color: var(--white);
  border-block-end: 1px solid #ffffff21;
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.wordmark {
  width: max-content;
  font: 900 35px/.8 Arial, sans-serif;
  letter-spacing: -.095em;
  text-decoration: none;
}
.wordmark span { color: var(--gold); }
.site-header nav { display: flex; gap: clamp(15px, 4vw, 46px); }
.site-header nav a, .header-location, .site-footer a {
  text-decoration: none;
  font-weight: 700;
}
.site-header nav a { padding-block: 12px; }
.site-header a:hover, .site-footer a:hover { color: var(--gold); }
.header-location { justify-self: end; color: var(--gold); }
.header-location span { margin-inline-end: 6px; }

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(450px, 43vw, 650px);
  overflow: hidden;
  background: #221b15;
  color: var(--white);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero::before {
  background-image: url("https://images.deliveryhero.io/image/hungerstation/restaurant/android_cover_photo/10d8710b05030b5b2cf1f7879f429251.jpg?quality=75&webp=true&width=1440"),
    url("https://hungerstation.dhmedia.io/image/global-menu-service/HS_SA/vendor/57348/product/52521783/d04b1a43-4543-4aec-88ad-97c05b48ac95.jpg?quality=85&webp=true&width=1300");
  background-position: center 53%;
  background-size: cover;
}
.hero::after {
  background: linear-gradient(270deg, #17130ff7 0%, #17130fe8 21%, #17130fa8 53%, #17130f34 100%),
    linear-gradient(0deg, #17130fa6, transparent 60%);
}
.hero-inner { padding-block: 75px; }
.hero-copy { max-width: 580px; }
.eyebrow {
  color: var(--green);
  font-size: .96rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span { width: 23px; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  margin-block: 21px 18px;
  font-size: clamp(3.6rem, 8vw, 7.25rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-description { max-width: 390px; color: #f3e8d9; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 19px;
  text-decoration: none;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color .16s ease, border-color .16s ease;
}
.button.primary { background: var(--gold); color: #252016; }
.button.primary:hover { background: #ffd59a; }
.button.ghost { border-color: #ffffff66; color: var(--white); }
.button.ghost:hover { background: #ffffff20; }

.menu-section, .branches-section { padding-block: clamp(55px, 7vw, 100px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(2.2rem, 4.7vw, 3.65rem); font-weight: 900; line-height: 1.1; margin-top: 9px; }
.branch-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.branch-picker label { font-weight: 800; }
.branch-picker select {
  min-height: 46px;
  padding: 8px 13px;
  min-width: 160px;
  border: 1px solid #cec4b4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.menu-search { position: relative; width: min(100%, 290px); margin-block-end: 16px; }
.menu-search input {
  border: 1px solid #cec4b4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 40px 10px 12px;
  width: 100%;
  min-height: 46px;
}
.menu-search input::placeholder { color: var(--muted); }
.search-mark {
  position: absolute;
  inset-inline-start: 15px;
  top: 14px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-mark::after {
  content: "";
  position: absolute;
  height: 6px;
  width: 1.5px;
  background: var(--muted);
  transform: rotate(-45deg);
  top: 9px;
  left: -2px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 14px 22px;
  margin-block-end: 26px;
  border-block: 1px solid var(--line);
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 99px;
  padding: 7px 15px;
  min-height: 40px;
  cursor: pointer;
  font-weight: 700;
}
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }

.menu-grid, .branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.menu-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.menu-card img { display: block; width: 100%; aspect-ratio: 1.64; object-fit: cover; background: #e8ddc9; }
.menu-card-body { display: grid; align-content: start; gap: 5px; padding: 18px 20px; }
.menu-card h3 { font-size: 1.35rem; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.menu-card p { color: var(--muted); }
.menu-card-details { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.menu-card .menu-price { color: #74450d; font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.menu-card .menu-price.unavailable { color: var(--muted); font-size: .82rem; }
.menu-card .category-name { color: var(--green); font-size: .84rem; font-weight: 800; }
.empty-state { padding: 36px 20px; text-align: center; border: 1px dashed #b7aa95; border-radius: var(--radius); color: var(--muted); }
.source-note { margin-bottom: 15px; color: var(--muted); font-size: .91rem; }
.source-note a { margin-inline-start: 6px; text-underline-offset: 3px; }

.photo-menu { margin: 0; width: min(100%, 720px); }
.photo-menu img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo-menu figcaption { margin-block-start: 12px; }
.branch-menu-link { border-color: var(--green); color: var(--green); }
.branch-menu-link:hover { background: #e8eddf; }

.branches-section { background: #eae5d8; border-block-start: 1px solid #ded6c4; }
.branch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.branch-mark {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  background: #e8eddf;
  color: var(--green);
  border-radius: 9px;
  font-size: 22px;
}
.branch-type { color: var(--green); font-size: .91rem; font-weight: 800; }
.branch-card h3 { font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.branch-card address { font-style: normal; color: var(--muted); }
.branch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: auto; padding-top: 9px; }
.map-link { background: var(--green); color: var(--white); }
.map-link:hover { background: #343f28; }
.call-link { color: var(--green); text-underline-offset: 4px; min-height: 42px; display: inline-flex; align-items: center; }
.site-footer { background: var(--dark); color: var(--white); }
.footer-inner { min-height: 104px; padding-block: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-inner .wordmark { margin-inline-end: 12px; }
.back-top { margin-inline-start: auto; }

@media (max-width: 790px) {
  .container { width: calc(100% - 44px); }
  .header-inner { gap: 16px; }
  .menu-grid, .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; display: flex; justify-content: space-between; }
  .site-header nav { gap: 14px; font-size: .91rem; }
  .header-location { display: none; }
  .wordmark { font-size: 31px; }
  .hero { min-height: 425px; }
  .hero::before { background-position: 46% center; }
  .hero::after { background: linear-gradient(270deg, #17130ff2, #17130f75), linear-gradient(0deg, #17130fac, transparent); }
  .hero-inner { padding-block: 64px; }
  .section-head { align-items: start; flex-direction: column; gap: 16px; }
  .menu-search { width: 100%; }
  .menu-grid, .branch-grid { grid-template-columns: 1fr; gap: 13px; }
  .filter { padding-inline: 12px; font-size: .88rem; }
  .footer-inner { gap: 12px 18px; font-size: .9rem; }
  .footer-inner .wordmark { margin-inline-end: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Single-row RTL category rail on all widths. */
.filter-strip{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:5px;min-width:0;margin-block:12px 24px;direction:rtl}.filter-strip .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;min-width:0;margin:0;padding:8px 0;scroll-snap-type:x proximity}.filter-strip .filter{flex:0 0 auto;white-space:nowrap;scroll-snap-align:start}.strip-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--ink);font-size:28px;cursor:pointer;line-height:1}.locate-button{background:var(--green);color:var(--white);min-height:44px;cursor:pointer}.locate-button:disabled{opacity:.6}#location-status{font-size:.85rem;color:var(--muted);max-width:36ch}.branch-picker{max-width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.branch-picker select{max-width:100%}

/* Header branch picker: accessible on mobile and desktop */
.header-inner{grid-template-columns:minmax(0,1fr) auto;gap:20px}.header-brand{display:flex;align-items:center;gap:16px;min-width:0}.header-picker{position:relative;display:block;min-width:0}.branch-trigger{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 12px;background:#ffffff12;color:var(--white);border:1px solid #ffffff35;border-radius:8px;cursor:pointer;white-space:nowrap}.pin-icon{display:inline-block;width:13px;height:17px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E") center/contain no-repeat;flex:none}.branch-trigger .pin-icon{color:var(--gold)}.branch-options{position:absolute;inset-inline-start:0;top:calc(100% + 8px);z-index:20;width:min(280px,75vw);padding:12px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0003}.picker-caption{color:var(--muted);font-weight:700;padding:4px 8px}.branch-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 10px;border:0;background:transparent;color:var(--ink);text-align:start;border-radius:6px;cursor:pointer}.branch-choice[aria-pressed=true],.branch-choice:hover{background:#e8eddf;color:#34432e}.branch-options .locate-button{width:100%;margin-top:8px}.header-picker #location-status{color:var(--gold);font-size:11px;max-width:30ch;line-height:1.3}.image-reference{font-size:.75rem;color:var(--muted)}@media(max-width:560px){.header-inner{display:flex;flex-wrap:wrap;gap:8px}.header-brand{gap:12px;width:100%}.site-header nav{width:100%;justify-content:space-between}.branch-trigger{font-size:.87rem}.branch-options{inset-inline-start:0}}

.header-controls{display:flex;gap:8px;align-items:center;justify-content:flex-end}.header-button{min-width:44px;min-height:44px;display:inline-grid;place-items:center;border:1px solid #ffffff45;border-radius:8px;background:transparent;color:#fff;font:600 24px/1 system-ui;cursor:pointer}.header-brand{width:auto;flex:1}.header-inner{display:flex;justify-content:space-between}.hero[data-city=hail]::before{background-image:url("./hail-landmark.svg")}.hero[data-city=yanbu]::before{background-image:url("./yanbu-landmark.svg")}.hero[data-city]::after{background:linear-gradient(270deg,#17130ff2,#17130f70 68%,#17130f30)}.hero h1{font-size:clamp(2.7rem,6vw,5.6rem)}.landmark-caption{color:var(--gold);font-size:.9rem;margin-bottom:10px}#side-nav{position:fixed;inset:0 0 0 auto;margin:0;width:min(340px,88vw);max-height:none;height:100%;border:0;padding:24px;background:var(--dark);color:#fff;box-shadow:-10px 0 40px #0004}#side-nav::backdrop{background:#0008}.side-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}#side-nav nav{display:grid;gap:5px}#side-nav nav a{padding:15px 8px;border-bottom:1px solid #ffffff25;text-decoration:none}.footer-branches{position:relative}.footer-branches summary{cursor:pointer;font-weight:700}.footer-branches ul{list-style:none;padding:10px 0;margin:0;display:grid;gap:8px}.footer-branches[open] ul{position:absolute;bottom:100%;inset-inline-start:0;min-width:170px;padding:12px;background:#171613;border:1px solid #ffffff40;border-radius:8px;z-index:3}.branch-card{scroll-margin-top:20px}html[data-theme=dark]{color-scheme:dark;--ink:#f2eee5;--paper:#191b17;--white:#252820;--muted:#c8c6ba;--line:#494b40;--green:#b0c290}html[data-theme=dark] .branches-section{background:#22261e;border-color:var(--line)}html[data-theme=dark] .menu-price{color:var(--gold)}html[data-theme=dark] .filter[aria-pressed=true],html[data-theme=dark] .map-link,html[data-theme=dark] .locate-button{color:#172011}html[data-theme=dark] .branch-mark{color:#34432e}html[data-theme=dark] .hero,html[data-theme=dark] .site-header,html[data-theme=dark] .site-footer{color:#fffaf0}html[data-theme=dark] .hero .button.ghost{color:#fffaf0}html[data-theme=dark] .branch-trigger{color:#fffaf0}@media(prefers-color-scheme:dark){html:not([data-theme]){color-scheme:dark;--ink:#f2eee5;--paper:#191b17;--white:#252820;--muted:#c8c6ba;--line:#494b40;--green:#b0c290}html:not([data-theme]) .branches-section{background:#22261e;border-color:var(--line)}html:not([data-theme]) .menu-price{color:var(--gold)}html:not([data-theme]) .filter[aria-pressed=true],html:not([data-theme]) .map-link,html:not([data-theme]) .locate-button{color:#172011}html:not([data-theme]) .hero,html:not([data-theme]) .site-header,html:not([data-theme]) .site-footer,html:not([data-theme]) .hero .button.ghost,html:not([data-theme]) .branch-trigger{color:#fffaf0}}@media(max-width:560px){.header-inner{gap:5px;flex-wrap:nowrap}.header-brand{gap:8px}.header-controls{gap:4px}.header-button{min-width:36px;min-height:40px;font-size:20px}.branch-trigger{padding:6px;gap:4px;font-size:12px}.wordmark{font-size:27px}.container{width:calc(100% - 24px)}}

/* Local branch hero and native accessible image viewer */
.hero::before{background-image:none!important}.hero-photo{position:absolute;inset:0;padding:0;border:0;background:#221b15;cursor:zoom-in;z-index:0;width:100%;height:100%;overflow:hidden}.hero-photo img{display:block;width:100%;height:100%;object-fit:cover}.hero::after,.hero[data-city]::after{z-index:1;pointer-events:none;background:linear-gradient(270deg,#17130ff2,#17130f80 60%,#17130f18)}.hero-inner{position:relative;z-index:2;pointer-events:none}.hero-actions a{pointer-events:auto}.zoom-badge{position:absolute;bottom:18px;left:18px;border-radius:50%;background:#171613c9;color:#fff;width:44px;height:44px;display:grid;place-items:center;font-size:25px;z-index:2}.dish-photo{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.dish-photo:focus-visible{outline-offset:-4px}#image-viewer{padding:0;border:1px solid #ffffff25;border-radius:18px;width:min(94vw,1100px);max-height:94dvh;background:#161613;color:#fff;overflow:auto;box-shadow:0 20px 70px #0008}#image-viewer::backdrop{background:#000c}.viewer-content{position:relative}.viewer-content>img{display:block;width:100%;max-height:76dvh;object-fit:contain;background:#111}.viewer-caption{padding:14px 20px}.viewer-caption h2{font-size:1.15rem}.viewer-caption p{color:#ddd;font-size:.9rem}#viewer-close{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:46px;height:46px;border:1px solid #ffffff60;border-radius:50%;background:#161613df;color:#fff;cursor:pointer}#viewer-close:hover{background:#49453c}body:has(#image-viewer[open]){overflow:hidden}

.qty-control{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:9px;padding:3px;margin-top:8px;max-width:160px}.qty-control button{width:42px;height:40px;border:0;border-radius:6px;background:var(--green);color:var(--paper);font-size:22px;cursor:pointer}.qty-control button:disabled{opacity:.35}.qty-control output{font-weight:800;min-width:24px;text-align:center}.cart-bar{position:fixed;bottom:12px;inset-inline:12px;margin:auto;max-width:650px;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:#234934;color:#fff;border-radius:12px;box-shadow:0 6px 24px #0004}.cart-bar button,.wa-send{padding:10px 16px;border:0;border-radius:8px;background:#25d366;color:#14251b;font-weight:800;cursor:pointer}.cart-bar button{background:#fff}.cart-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.cart-head button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:50%;width:42px;height:42px;font-size:24px;cursor:pointer}#cart-dialog{width:min(95vw,540px);max-height:92dvh;padding:0;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);overflow:auto}#cart-dialog::backdrop{background:#0009}.cart-body{padding:18px;display:grid;gap:12px}.cart-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}.cart-row small{display:block;color:var(--muted)}.cart-row .qty-control{flex:none}.cart-total{display:flex;justify-content:space-between;font-weight:800}.cart-body label{display:grid;gap:5px}.cart-body input:not([type=checkbox]),.cart-body select,.cart-body textarea{width:100%;padding:10px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;font:inherit}.cart-body .cart-confirm{display:flex;align-items:center;gap:9px}.cart-body button:disabled{opacity:.45;cursor:not-allowed}#copy-order{padding:10px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px}#recipient-note,#cart-notice{font-size:.85rem;color:var(--muted)}#cart-open{font-size:14px;gap:2px;display:flex;align-items:center}body:has(#cart-bar:not([hidden])){padding-bottom:78px}@media(max-width:380px){.header-brand{gap:4px}.header-controls{gap:2px}.header-button{min-width:30px}.branch-trigger{font-size:11px}.wordmark{font-size:24px}}

.demo-main{padding-block:40px;min-height:70vh;display:grid;gap:18px;align-content:start}.demo-label{color:var(--muted);font-weight:800}.demo-filters{display:flex;gap:12px;flex-wrap:wrap}.demo-filters label{display:grid;gap:5px}.demo-filters select{padding:10px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:8px}#order-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px}.demo-order{background:var(--white);border:1px solid var(--line);padding:18px;border-radius:12px;display:grid;gap:8px}.demo-order h2{font-size:1.25rem}.wa-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:#d9fdd3;color:#153229;border-radius:15px;padding:22px;max-width:560px;font:inherit;line-height:1.8}

.delivery-location-row{display:flex;align-items:center;gap:8px;margin-top:5px}.delivery-location-row input{min-width:0;flex:1}.delivery-location-row button{flex:none;width:46px;height:46px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--green);display:grid;place-items:center;cursor:pointer}#delivery-location-status{font-size:.85rem;color:var(--muted);margin-top:6px}#delivery-map,#delivery-clear{font-size:.85rem;margin-inline-end:10px}#delivery-clear{border:0;background:transparent;color:var(--ink);text-decoration:underline;cursor:pointer}
