:root {
  --olive: #606f48;
  --olive-deep: #4b5838;
  --olive-ink: #2b3320;
  --cream: #f6efd6;
  --cream-2: #ece3c3;
  --paper: #faf6e9;
  --line: rgba(246, 239, 214, 0.16);
  --line-ink: rgba(43, 51, 32, 0.12);
  --radius: 18px;
  --font: "IBM Plex Sans Arabic", "Fraunces", system-ui, sans-serif;
  --display: "Fraunces", "IBM Plex Sans Arabic", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.5;
  color: var(--cream);
  background: var(--olive);
  min-height: 100dvh;
}

html[lang="en"] body {
  --font: "Fraunces", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* grain */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- top bar (shared) ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30, 36, 23, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.pill-btn:hover {
  background: rgba(30, 36, 23, 0.3);
}

.pill-btn:active {
  transform: scale(0.96);
}

.pill-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn {
  width: 40px;
  padding: 0;
  justify-content: center;
}

/* ---------- bio page ---------- */
.bio {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.bio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(246, 239, 214, 0.12), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(30, 36, 23, 0.55), transparent 70%),
    var(--olive);
}

.hero {
  text-align: center;
  padding: 36px 0 24px;
}

.hero .logo {
  width: min(250px, 66vw);
  margin: 0 auto;
  filter: drop-shadow(0 10px 30px rgba(20, 24, 14, 0.25));
  animation: rise 0.9s var(--ease) both;
}

.tagline {
  margin: 22px auto 0;
  max-width: 34ch;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(246, 239, 214, 0.86);
  animation: rise 0.9s 0.08s var(--ease) both;
}

html[lang="ar"] .tagline {
  font-family: var(--font);
  font-size: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(30, 36, 23, 0.25);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  animation: rise 0.9s 0.14s var(--ease) both;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9c98f;
  box-shadow: 0 0 0 0 rgba(185, 201, 143, 0.7);
  animation: pulse 2s infinite;
}

button.status {
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: background 0.2s var(--ease);
}

button.status:hover {
  background: rgba(30, 36, 23, 0.4);
}

.status .chev {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.status.closed .dot {
  background: #d99a7a;
  animation: none;
}

.status .sep {
  opacity: 0.45;
}

.links {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.links > * {
  animation: rise 0.8s var(--ease) both;
}

.links > *:nth-child(1) { animation-delay: 0.18s; }
.links > *:nth-child(2) { animation-delay: 0.24s; }
.links > *:nth-child(3) { animation-delay: 0.3s; }
.links > *:nth-child(4) { animation-delay: 0.36s; }
.links > *:nth-child(5) { animation-delay: 0.42s; }
.links > *:nth-child(6) { animation-delay: 0.48s; }

/* feature: menu card */
.menu-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border-radius: 24px;
  background: var(--cream);
  color: var(--olive-ink);
  box-shadow: 0 24px 50px -24px rgba(20, 24, 14, 0.6);
  transition: transform 0.3s var(--ease);
}

.menu-card:hover {
  transform: translateY(-2px);
}

.menu-card:active {
  transform: scale(0.985);
}

.menu-card > :not(.fan) {
  position: relative;
  z-index: 3;
}

.menu-card .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.menu-card h2 {
  max-width: 10ch;
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 600;
}

html[lang="ar"] .menu-card h2 {
  font-family: var(--font);
  font-weight: 700;
}

.menu-card p {
  margin: 0;
  max-width: 17ch;
  font-size: 14px;
  color: rgba(43, 51, 32, 0.7);
}

.menu-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}

.menu-card .cta svg {
  width: 16px;
  height: 16px;
}

html[dir="rtl"] .menu-card .cta svg,
html[dir="rtl"] .row .arrow,
html[dir="rtl"] .back-ico {
  transform: scaleX(-1);
}

.fan {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -18px;
  width: 170px;
  height: 170px;
  pointer-events: none;
}

.fan img {
  position: absolute;
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid var(--cream);
  box-shadow: 0 12px 24px -10px rgba(20, 24, 14, 0.45);
  background: var(--cream-2);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fan img.loaded {
  opacity: 1;
}

.fan img.loaded.swap {
  opacity: 0;
  transition-duration: 0.25s;
}

.fan img:nth-child(1) { inset-inline-end: 70px; bottom: 26px; transform: rotate(-12deg); }
.fan img:nth-child(2) { inset-inline-end: 34px; bottom: 58px; transform: rotate(4deg); z-index: 1; }
.fan img:nth-child(3) { inset-inline-end: 6px; bottom: 16px; transform: rotate(14deg); z-index: 2; }

.menu-card:hover .fan img:nth-child(1) { transform: rotate(-16deg) translateY(-4px); }
.menu-card:hover .fan img:nth-child(3) { transform: rotate(18deg) translateY(-4px); }

/* rotating banner */
.promo {
  position: relative;
  min-width: 0;
}

.promo-track {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  direction: ltr;
  border-radius: 24px;
  /* room for card shadows */
  padding-bottom: 6px;
  margin-bottom: -6px;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  direction: ltr;
}

html[dir="rtl"] .promo-slide {
  direction: rtl;
}

.promo-slide:hover {
  transform: none;
}

.new-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 176px;
  padding: 22px;
  border-radius: 24px;
  background: var(--olive-ink);
  color: var(--cream);
  box-shadow: 0 24px 50px -24px rgba(20, 24, 14, 0.6);
}

.new-card .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  transition: transform 0.6s var(--ease);
}

html[dir="rtl"] .new-card .bg {
  transform: scaleX(-1);
}

.new-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(31, 37, 24, 0.92) 0%, rgba(31, 37, 24, 0.7) 42%, rgba(31, 37, 24, 0) 75%);
}

html[dir="rtl"] .new-card::after {
  background: linear-gradient(to left, rgba(31, 37, 24, 0.92) 0%, rgba(31, 37, 24, 0.7) 42%, rgba(31, 37, 24, 0) 75%);
}

/* light slide: product shot on its own backdrop, never mirrored */
.new-card.light {
  background: #b7bba4;
  color: var(--olive-ink);
}

.new-card.light::after {
  display: none;
}

html[dir] .new-card.light .bg {
  transform: none;
  object-position: left center;
}

html[dir] .new-card.light .bg.only-ltr {
  object-position: right center;
}

html[dir="rtl"] .new-card .only-ltr,
html[dir="ltr"] .new-card .only-rtl {
  display: none;
}

.new-card.light .tag,
.new-card.light .cta {
  background: var(--olive-ink);
  color: var(--cream);
}

.new-card.light p {
  color: rgba(43, 51, 32, 0.78);
}

.new-card > :not(.bg) {
  position: relative;
  z-index: 2;
}

.new-card .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.new-card h2 {
  max-width: 9ch;
  margin: 10px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
}

html[lang="ar"] .new-card h2 {
  font-family: var(--font);
  font-weight: 700;
}

.new-card p {
  max-width: 16ch;
  margin: 0;
  font-size: 13px;
  color: rgba(246, 239, 214, 0.78);
}

.new-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive-ink);
  font-size: 14px;
  font-weight: 600;
}

.new-card .cta svg {
  width: 16px;
  height: 16px;
}

html[dir="rtl"] .new-card .cta svg {
  transform: scaleX(-1);
}

.new-card:active,
.menu-card.promo-slide:active {
  transform: scale(0.985);
}

.promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.promo-dots button {
  width: 6px;
  height: 22px;
  padding: 8px 0;
  background-clip: content-box;
  border-radius: 999px;
  background-color: rgba(246, 239, 214, 0.35);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.promo-dots button[aria-selected="true"] {
  width: 20px;
  background-color: var(--cream);
}

/* rows */
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(30, 36, 23, 0.22);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.row:hover {
  background: rgba(30, 36, 23, 0.34);
}

.row:active {
  transform: scale(0.985);
}

.row .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(246, 239, 214, 0.1);
}

.row .ico svg {
  width: 22px;
  height: 22px;
}

.row .txt {
  flex: 1;
  min-width: 0;
}

.row .title {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.row .sub {
  display: block;
  font-size: 13px;
  color: rgba(246, 239, 214, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row .arrow {
  flex: none;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

/* delivery apps */
.delivery {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(30, 36, 23, 0.22);
  border: 1px solid var(--line);
}

.delivery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.delivery-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.delivery-head span {
  font-size: 12px;
  color: rgba(246, 239, 214, 0.6);
}

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

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: rgba(246, 239, 214, 0.06);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.app:hover {
  background: rgba(246, 239, 214, 0.12);
}

.app:active {
  transform: scale(0.96);
}

.app img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(246, 239, 214, 0.15);
}

.app span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(246, 239, 214, 0.82);
  white-space: nowrap;
}

/* working hours dialog */
.hours-dialog {
  width: calc(100% - 32px);
  max-width: 360px;
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: var(--cream);
  color: var(--olive-ink);
  font-family: var(--font);
  box-shadow: 0 30px 60px -20px rgba(20, 24, 14, 0.6);
}

.hours-dialog::backdrop {
  background: rgba(20, 24, 14, 0.5);
  backdrop-filter: blur(3px);
}

.hours-dialog[open] {
  animation: pop 0.3s var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}

.hours-dialog h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

html[lang="ar"] .hours-dialog h2 {
  font-family: var(--font);
  font-weight: 700;
}

.hours-dialog .now {
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--olive);
  font-weight: 500;
}

.hours-dialog ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hours-dialog li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(96, 111, 72, 0.08);
  font-size: 14px;
}

.hours-dialog li .t {
  font-weight: 600;
  white-space: nowrap;
}

.hours-dialog li.today {
  background: var(--olive);
  color: var(--cream);
}

.hours-dialog .x {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(96, 111, 72, 0.1);
}

.hours-dialog .x svg {
  width: 16px;
  height: 16px;
}

.hours-dialog :focus-visible {
  outline-color: var(--olive);
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.socials .row {
  min-height: 60px;
}

.foot {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(246, 239, 214, 0.5);
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* signature */
.sig {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: rgba(246, 239, 214, 0.45);
  text-decoration: none !important;
  transition: color 0.2s var(--ease);
}

.sig svg {
  width: 10px;
  height: 10px;
  color: rgba(246, 239, 214, 0.8);
  transition: transform 0.3s var(--ease);
}

.sig strong {
  font-weight: 600;
  color: rgba(246, 239, 214, 0.8);
}

.sig:hover {
  color: rgba(246, 239, 214, 0.7);
}

.sig:hover svg {
  transform: scale(1.2);
}

body.menu-page .sig {
  flex-basis: 100%;
  justify-content: center;
  margin-top: 12px;
  color: rgba(43, 51, 32, 0.45);
}

body.menu-page .sig svg,
body.menu-page .sig strong {
  color: rgba(43, 51, 32, 0.75);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(185, 201, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(185, 201, 143, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- offers page ---------- */
.offers-head {
  text-align: center;
  padding: 28px 0 22px;
}

.offers-head .logo-sm {
  width: 120px;
  margin: 0 auto 18px;
}

.offers-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
}

html[lang="ar"] .offers-head h1 {
  font-family: var(--font);
  font-weight: 700;
}

.offers-head p {
  margin: 4px 0 0;
  font-size: 15px;
  color: rgba(246, 239, 214, 0.72);
}

.offers {
  display: grid;
  gap: 16px;
}

.offer {
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream);
  color: var(--olive-ink);
  box-shadow: 0 24px 50px -24px rgba(20, 24, 14, 0.6);
  scroll-margin-top: 16px;
  animation: rise 0.8s var(--ease) both;
}

.offer:nth-child(2) { animation-delay: 0.08s; }
.offer:nth-child(3) { animation-delay: 0.16s; }

.offer:target {
  box-shadow: 0 0 0 3px var(--cream), 0 24px 50px -24px rgba(20, 24, 14, 0.6);
}

.offer-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
}

.offer-img.tall {
  aspect-ratio: 1;
}

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

.offer-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--olive-ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
}

.offer-tag.new {
  background: var(--cream);
  color: var(--olive-ink);
}

.offer-body {
  padding: 18px 20px 20px;
}

.offer-body h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
}

html[lang="ar"] .offer-body h2 {
  font-family: var(--font);
  font-weight: 700;
}

.offer-body .deal {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--olive);
}

.offer-body .desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(43, 51, 32, 0.72);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(43, 51, 32, 0.2);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--olive-ink);
  color: var(--cream);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
