/* ==========================================================================
   Trattoria Tehran — تراتوریا تهران
   Palette drawn from the brand visuals: crimson ink, cream paper,
   baked-dough tan and basil sage.
   ========================================================================== */

/* One family, two brand fonts split by script: each glyph comes from the font
   that covers its unicode-range, so Persian and English text never mix faces.
   The space (U+0020, U+00A0) comes from Morabba, widened with word-spacing on body. */
/* Persian: Morabba */
@font-face {
  font-family: "Trattoria";
  src: url("../fonts/Morabba-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: "Trattoria";
  src: url("../fonts/Morabba-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
/* Latin: Sulphur Point (the "From our hands to Yours" face) */
@font-face {
  font-family: "Trattoria";
  src: url("../fonts/SulphurPoint-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-001F, U+0021-009F, U+00A1-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2010-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Trattoria";
  src: url("../fonts/SulphurPoint-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-001F, U+0021-009F, U+00A1-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2010-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --crimson: #a00f25;
  --crimson-deep: #7c0b1c;
  --crimson-soft: #c23a4c;
  --cream: #efe2d9;
  --paper: #f7f0ea;
  --dough: #e3bf8e;
  --dough-deep: #c89a5d;
  --dough-light: #f0dcc0;
  --sage: #a7bc8b;
  --sage-deep: #56703f;
  --ink: #2b1a1c;
  --ink-soft: #6b5354;
  --line: rgba(160, 16, 37, 0.16);

  --font: "Trattoria", Tahoma, "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(124, 11, 28, 0.35);
  --shadow-sm: 0 6px 18px -8px rgba(43, 26, 28, 0.25);
  --container: 1180px;
  --header-h: 72px;
  --infobar-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  word-spacing: 0.12em; /* Morabba's space is narrow; Sulphur Point's is too wide for Persian */
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--crimson); color: var(--cream); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200;
  background: var(--crimson); color: var(--cream);
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.latin { direction: ltr; unicode-bidi: isolate; }

/* ── Brand marks ───────────────────────────────────────────────────────── */
.mark { width: 1em; height: auto; fill: currentColor; }
.wordmark { display: block; height: auto; fill: currentColor; aspect-ratio: 1080 / 646; }
.wordmark--en { aspect-ratio: 1080 / 146; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--crimson);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8em 1.5em;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, box-shadow 0.25s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); } }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { background: transparent; color: var(--btn-bg); }
@media (hover: hover) { .btn--ghost:hover { background: var(--btn-bg); color: var(--btn-fg); } }
.btn--cream { --btn-bg: var(--cream); --btn-fg: var(--crimson); }
.btn--sage { --btn-bg: var(--sage-deep); --btn-fg: #fff; }
.btn--sm { padding: 0.55em 1.1em; font-size: 0.92rem; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.site-header .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--crimson); text-decoration: none; flex: none;
}
.brand .mark { width: 40px; }
.brand .wordmark { width: 78px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; padding: 0; }
.nav__link {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.98rem; color: var(--ink);
  transition: background-color 0.2s, color 0.2s;
}
@media (hover: hover) { .nav__link:hover { background: var(--cream); color: var(--crimson); } }
.nav__link[aria-current="page"] { color: var(--crimson); background: var(--cream); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-link {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream); color: var(--crimson);
  border: 0; cursor: pointer; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
@media (hover: hover) { .cart-link:hover { background: var(--crimson); color: var(--cream); } }
.cart-link svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -2px; inset-inline-end: -2px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px; background: var(--crimson); color: var(--cream);
  font-size: 0.75rem; font-weight: 700; line-height: 1;
  border: 2px solid var(--paper);
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.cart-badge.has-items { transform: scale(1); }
.cart-badge.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--crimson); color: var(--cream); cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.2s, visibility 0.3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: 12px 16px; font-size: 1.1rem; border-radius: 12px; }
  .nav .btn { margin-top: 8px; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--infobar-h));
  min-height: calc(100svh - var(--header-h) - var(--infobar-h));
  display: flex; align-items: center;
  padding: clamp(24px, 5vh, 56px) 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; z-index: -1;
  inset-inline-end: -12%; bottom: -30%;
  width: 60vw; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--dough) 45%, transparent), transparent 65%);
  border-radius: 50%;
}
.hero .container {
  width: min(100% - 32px, var(--container));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--crimson); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px;
}
.hero__title {
  margin: 18px 0 8px;
  color: var(--crimson);
  font-size: clamp(2.4rem, min(6.4vw, 8.5vh), 5.2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title span + span { padding-inline-start: 1.2em; }
.hero__motto {
  color: var(--dough-deep); font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero__lead { max-width: 52ch; color: var(--ink-soft); font-size: 1.12rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.5vh, 32px); }

.hero__photo { display: none; }

/* Collage — echoes the sticker arrangement on the packaging visuals */
.collage { position: relative; aspect-ratio: 1 / 1; width: min(100%, 540px, 68vh); justify-self: center; }
.collage > * { position: absolute; }
.collage__dough {
  inset: 4% 2% 12% 16%;
  border-radius: 50%;
  background: url("../img/dough-texture.webp") center / 180% auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  animation: spin 90s linear infinite;
}
.collage__dough::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(160,16,37,0.35) 0 10%, transparent 11%),
              radial-gradient(circle at 68% 62%, rgba(160,16,37,0.3) 0 7%, transparent 8%),
              radial-gradient(circle at 44% 74%, rgba(160,16,37,0.28) 0 5%, transparent 6%);
}
.collage__tag {
  inset-inline-end: 0; top: 16%;
  width: 46%; aspect-ratio: 5 / 8;
  background: var(--crimson); color: var(--cream);
  border-radius: 6px;
  transform: rotate(-24deg);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  padding: 6% 5.5%; /* % of the collage width (~12% of the tag) */
}
/* Mark and wordmark stacked on one centre line */
.collage__tag .mark { position: static; width: 62%; color: var(--dough); }
.collage__tag .wordmark { width: 92%; }
.collage__house {
  inset-inline-start: 6%; bottom: 2%;
  width: 52%;
  color: var(--sage);
  filter: drop-shadow(0 18px 30px rgba(86, 112, 63, 0.35));
  animation: float 7s ease-in-out infinite;
}
.collage__house .mark--outline { width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .collage { display: none; }
  .hero__photo { display: block; }
  .hero__photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--dough); }
  /* Headline and buttons first; the long paragraph moves below the buttons */
  .hero__text { display: flex; flex-direction: column; }
  .hero__lead { order: 5; margin-top: 24px; }
  .hero__title { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .hero__title span + span { padding-inline-start: 0.8em; }
  .hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .hero__cta .btn { padding-inline: 0.8em; }
}

/* ── Info strip ────────────────────────────────────────────────────────── */
.infobar {
  min-height: var(--infobar-h);
  display: flex; align-items: center;
  background: var(--crimson); color: var(--cream);
  border-block: 1px solid var(--crimson-deep);
}
.infobar__list {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px clamp(24px, 5vw, 64px);
  list-style: none; padding-block: 12px;
  font-weight: 700; font-size: 1rem; line-height: 1.5;
}
.infobar__list li, .infobar__list a { display: inline-flex; align-items: center; gap: 10px; }
.infobar__list a { text-decoration: none; }
@media (hover: hover) { .infobar__list a:hover span { text-decoration: underline; text-underline-offset: 6px; } }
.infobar__list svg { width: 20px; height: 20px; color: var(--dough); flex: none; }
@media (max-width: 560px) {
  .infobar__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.8rem; text-align: center; }
  .infobar__list li, .infobar__list a { flex-direction: column; gap: 4px; }
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--crimson { background: var(--crimson); color: var(--cream); }
.section--dough {
  background: var(--dough) url("../img/dough-texture.webp") center / cover;
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  color: var(--crimson);
  margin: 12px 0 14px;
}
.section--crimson .section-title, .section--crimson .eyebrow { color: var(--cream); }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }
.section--crimson .section-lead { color: color-mix(in srgb, var(--cream) 82%, transparent); }

/* ── Story ─────────────────────────────────────────────────────────────── */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story__figure { position: relative; }
.story__figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
}
.story__text p + p { margin-top: 1em; }
.story__text p { color: var(--ink-soft); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px; padding: 0; list-style: none;
}
.stats li {
  background: var(--paper); border-radius: var(--radius-sm);
  padding: 18px 16px; text-align: center;
  border: 1px solid var(--line);
}
.stats strong { display: block; color: var(--crimson); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; }
.stats span { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__figure { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* ── Ingredients ───────────────────────────────────────────────────────── */
.ingredients { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.ingredient {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.ingredient img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
@media (hover: hover) { .ingredient:hover img { transform: scale(1.06); } }
.ingredient::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(30, 12, 14, 0.85), rgba(30, 12, 14, 0.1) 65%);
}
.ingredient__color {
  display: inline-block; align-self: flex-start;
  padding: 2px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 10px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
}
.ingredient h3 { font-size: 1.6rem; }
.ingredient p { font-size: 0.98rem; opacity: 0.9; }
@media (max-width: 860px) {
  .ingredients { grid-template-columns: 1fr; }
  .ingredient { min-height: 300px; }
}

/* ── Breads ────────────────────────────────────────────────────────────── */
.breads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; margin-inline: auto; }
.bread {
  position: relative; overflow: hidden;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
}
.bread__num { display: block; font-size: 2.6rem; font-weight: 700; color: var(--dough-deep); line-height: 1; margin-bottom: 14px; }
.bread h3 { font-size: 1.55rem; color: var(--crimson); }
.bread .latin { font-size: 0.85rem; color: var(--dough-deep); letter-spacing: 0.08em; }
.bread p { margin-top: 12px; color: var(--ink-soft); font-size: 0.98rem; }
.bread-note {
  grid-column: 1 / -1;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1.5px dashed color-mix(in srgb, var(--dough-deep) 60%, transparent);
}
.bread-note h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.bread-note p { color: var(--ink-soft); font-size: 0.96rem; }
.bread-note strong { color: var(--crimson); }
@media (max-width: 760px) { .breads { grid-template-columns: 1fr; } }

.center-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ── Delivery ──────────────────────────────────────────────────────────── */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.delivery__img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.delivery__list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 14px; }
.delivery__list li { display: flex; gap: 14px; align-items: flex-start; }
.delivery__list svg { flex: none; width: 26px; height: 26px; color: var(--dough); margin-top: 3px; }
.delivery__list strong { display: block; }
.delivery__list span { opacity: 0.82; font-size: 0.96rem; }
@media (max-width: 860px) {
  .delivery { grid-template-columns: 1fr; }
  .delivery__media { max-width: 460px; margin-inline: auto; }
}

/* ── Branches ──────────────────────────────────────────────────────────── */
.location {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; max-width: 980px; margin-inline: auto;
}
.location__figure img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .location { grid-template-columns: 1fr; }
  .location__figure { display: none; }
}
.branch {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--crimson);
  display: flex; flex-direction: column; gap: 18px;
}
.branch__head { display: flex; align-items: center; gap: 14px; }
.branch__head .mark { width: 44px; color: var(--crimson); flex: none; }
.branch h3 { font-size: 1.45rem; color: var(--ink); }
.branch__district { font-size: 0.92rem; color: var(--ink-soft); }
.branch address { font-style: normal; }
.branch__info { display: grid; gap: 10px; margin: 0; }
.branch__info div { display: flex; gap: 10px; align-items: flex-start; }
.branch__info dt svg { width: 22px; height: 22px; color: var(--crimson); margin-top: 4px; }
.branch__info dd { margin: 0; color: var(--ink-soft); }
.branch__info a { text-decoration: none; color: var(--ink); font-weight: 700; direction: ltr; unicode-bidi: isolate; }

.map-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 0; list-style: none;
}
.map-links a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 0.86rem; text-align: center;
  border: 1.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease), color 0.2s;
}
@media (hover: hover) { .map-links a:hover { transform: translateY(-3px); background: #fff; border-color: var(--map-c, var(--crimson)); color: var(--map-c, var(--crimson)); } }
.map-links svg { width: 26px; height: 26px; color: var(--map-c, var(--crimson)); }
.map-links .gmaps { --map-c: #1a73e8; }
.map-links .waze { --map-c: #1e9ed8; }
.map-links .neshan { --map-c: #0b8c5a; }
.map-links .balad { --map-c: #d6342c; }
@media (max-width: 330px) {
  .map-links { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--crimson-deep);
  color: var(--cream);
  padding: clamp(56px, 8vw, 88px) 0 28px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: linear-gradient(90deg, var(--sage) 0 33.33%, var(--paper) 33.33% 66.66%, var(--crimson) 66.66%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.8fr;
  gap: clamp(32px, 5vw, 56px);
}
.footer-brand .wordmark { width: 150px; color: var(--cream); margin-bottom: 16px; }
.footer-brand .wordmark--en { width: 180px; color: var(--dough); margin-bottom: 18px; }
.footer-brand p { opacity: 0.82; font-size: 0.97rem; }
.footer-motto { color: var(--dough); font-weight: 700; margin-top: 12px; }
.footer-social {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: var(--cream); text-decoration: none; font-weight: 700;
}
.footer-social svg { width: 20px; height: 20px; color: var(--dough); }
@media (hover: hover) { .footer-social:hover { background: var(--cream); color: var(--crimson-deep); } }
.site-footer h2 { font-size: 1.1rem; color: var(--dough); margin-bottom: 16px; }
.footer-branch h3 { font-size: 1.02rem; margin-bottom: 4px; }
.footer-branch address { font-style: normal; opacity: 0.85; font-size: 0.94rem; margin-bottom: 14px; }
.footer-branch .map-links { grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 420px; }
.footer-branch .map-links a {
  background: rgba(255,255,255,0.08); color: var(--cream);
  padding: 8px 4px; font-size: 0.74rem; border-radius: 10px;
}
@media (hover: hover) { .footer-branch .map-links a:hover { background: var(--cream); color: var(--map-c); } }
.footer-branch .map-links svg { width: 20px; height: 20px; color: var(--dough); }
@media (hover: hover) { .footer-branch .map-links a:hover svg { color: var(--map-c); } }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; opacity: 0.85; }
@media (hover: hover) { .footer-nav a:hover { opacity: 1; color: var(--dough); } }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(239, 227, 218, 0.16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.88rem; opacity: 0.75;
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Menu page ─────────────────────────────────────────────────────────── */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
  background: var(--crimson); color: var(--cream);
  position: relative; overflow: hidden; isolation: isolate;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { max-width: 60ch; opacity: 0.88; }
.breadcrumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; font-size: 0.92rem; opacity: 0.8; margin-bottom: 12px; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: 0.6; }
.breadcrumbs a { text-decoration: none; }

.menu-tabs {
  position: sticky; top: var(--header-h); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.menu-tabs ul {
  display: flex; gap: 8px; overflow-x: auto; padding: 12px 0;
  list-style: none; scrollbar-width: none;
}
.menu-tabs ul::-webkit-scrollbar { display: none; }
.menu-tabs a {
  display: block; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}
@media (hover: hover) { .menu-tabs a:hover { color: var(--crimson); } }
.menu-tabs a.is-active { background: var(--crimson); color: var(--cream); }

.menu-section { padding: clamp(40px, 6vw, 72px) 0 8px; scroll-margin-top: calc(var(--header-h) + 70px); }
.menu-section__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.menu-section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--crimson); }
.menu-section__head .latin { color: var(--dough-deep); letter-spacing: 0.12em; font-size: 0.85rem; text-transform: uppercase; }
.menu-section__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; padding: 0; list-style: none; }
.menu-item {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
@media (hover: hover) { .menu-item:hover { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--crimson) 35%, transparent); } }
.menu-item__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.menu-item h3 { font-size: 1.2rem; }
.menu-item__it { font-size: 0.8rem; color: var(--dough-deep); letter-spacing: 0.05em; }
.menu-item__desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.menu-item__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tag {
  font-size: 0.75rem; font-weight: 700; padding: 1px 10px; border-radius: 999px;
  background: var(--cream); color: var(--ink-soft);
}
.tag--veg { background: #e6eedb; color: var(--sage-deep); }
.tag--hot { background: #f8dcdc; color: var(--crimson); }
.tag--chef { background: var(--dough-light); color: #7a5520; }
.menu-item__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.price { font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.price small { font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }

.qty {
  display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--crimson); color: var(--cream);
  height: 42px; overflow: hidden;
}
.qty button {
  width: 42px; height: 42px; border: 0; background: transparent; color: inherit;
  cursor: pointer; display: grid; place-items: center; font-size: 1.2rem;
  transition: background-color 0.2s;
}
@media (hover: hover) { .qty button:hover { background: var(--crimson-deep); } }
.qty button svg { width: 18px; height: 18px; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.add-btn { height: 42px; padding-inline: 18px; }

/* Floating cart bar */
.cart-bar {
  position: fixed; z-index: 90;
  inset-inline: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  padding-inline-start: 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.45);
  transform: translateY(140%); transition: transform 0.45s var(--ease);
}
.cart-bar.is-visible { transform: none; }
.cart-bar__sum { display: flex; flex-direction: column; line-height: 1.5; }
.cart-bar__sum small { opacity: 0.7; }
.menu-note { margin: 48px 0 120px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink-soft); font-size: 0.95rem; }

/* Cart drawer */
html.has-modal, html.has-modal body { overflow: hidden; }
.drawer {
  position: fixed; inset: 0; margin: 0;
  width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none;
  padding: 0; border: 0; background: transparent;
  overscroll-behavior: contain;
}
.drawer::backdrop { background: rgba(43, 26, 28, 0.5); animation: fade-in 0.3s ease; }
.drawer__panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(100%, 440px);
  background: var(--paper);
  display: flex; flex-direction: column;
  animation: slide-in 0.35s var(--ease);
  will-change: transform;
}
@keyframes slide-in { from { transform: translateX(-100%); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
/* Phones: the panel is full-screen, so it rises as a bottom sheet instead of sliding sideways */
@media (max-width: 560px) {
  .drawer__panel { animation: sheet-up 0.3s var(--ease); }
}
.drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.drawer__head h2 { color: var(--crimson); font-size: 1.3rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--cream); color: var(--ink); display: grid; place-items: center;
}
@media (hover: hover) { .icon-btn:hover { background: var(--crimson); color: var(--cream); } }
.icon-btn svg { width: 20px; height: 20px; }
.drawer__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 18px 20px; }
.cart-list { list-style: none; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.cart-line__name { font-weight: 700; }
.cart-line__price { color: var(--ink-soft); font-size: 0.9rem; }
.cart-line .qty { grid-row: span 2; height: 38px; }
.cart-line .qty button { width: 40px; height: 38px; }
.cart-notes { margin-top: 14px; }
.cart-notes summary {
  display: inline-block; cursor: pointer; list-style: none;
  color: var(--crimson); font-weight: 700; font-size: 0.95rem; padding: 6px 0;
}
.cart-notes summary::-webkit-details-marker { display: none; }
.cart-notes[open] summary { margin-bottom: 6px; }
.cart-notes textarea {
  width: 100%; min-height: 76px; resize: vertical;
  padding: 10px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 16px; /* iOS doesn't zoom into fields of 16px and larger */
}
.cart-notes textarea:focus { outline: none; border-color: var(--crimson); }
.drawer__hint { margin-top: 18px; font-size: 0.8rem; color: var(--ink-soft); }
.drawer__links { display: flex; gap: 16px; margin-top: 4px; }
.drawer__foot {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--cream);
  display: grid; gap: 10px;
}
/* While typing a note the on-screen keyboard is up: hide the footer so it can't cover the field */
.drawer.is-typing .drawer__foot { display: none; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.drawer__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; } /* long share/copy label, short "تماس" */
.drawer__actions .btn { padding: 0.75em 1.1em; white-space: nowrap; }
.text-btn { background: none; border: 0; color: var(--crimson); cursor: pointer; font-weight: 700; font-size: 0.9rem; padding: 4px 0; }

.toast {
  position: fixed; z-index: 300; top: calc(var(--header-h) + 12px); left: 50%;
  translate: -50% 0;
  background: var(--ink); color: var(--cream);
  padding: 10px 20px; border-radius: 999px; font-size: 0.95rem;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: none; }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .menu-section__head { flex-wrap: wrap; gap: 0 12px; }
  .menu-section__head::after { display: none; }
}
.delivery__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn--disabled small { font-size: 0.75em; font-weight: 400; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.menu-section__lead { color: var(--ink-soft); margin: -8px 0 20px; }
.menu-item--compact { padding-block: 16px; }
.menu-grid--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.menu-grid--compact .menu-item { padding: 14px 16px; }
.menu-grid--compact .menu-item__bottom { margin-top: 4px; flex-wrap: wrap; gap: 8px; }
.menu-note strong { color: var(--crimson); }
.footer-branch .tel { display: inline-block; margin: -6px 0 14px; font-size: 0.94rem; opacity: 0.85; text-decoration: none; }
.delivery__list a { color: inherit; font-weight: 700; white-space: nowrap; }
/* Mobile quick actions (landing page), shown once the hero buttons scroll out of view */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    position: fixed; z-index: 90; inset-inline: 12px; bottom: 12px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 36px -14px rgba(43, 26, 28, 0.45);
    transform: translateY(140%); transition: transform 0.4s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar .btn { padding: 0.7em 0.6em; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 359px) {
  .hero__cta .btn svg, .quickbar .btn svg { display: none; }
  .hero__cta .btn, .quickbar .btn { font-size: 0.92rem; }
}
/* Touch: hover styles are gated behind (hover: hover) above, so taps don't leave them stuck */
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.qty button:active { background: var(--crimson-deep); }
.icon-btn:active, .cart-link:active { background: var(--crimson); color: var(--cream); }
.map-links a:active { background: #fff; border-color: var(--map-c, var(--crimson)); }
[hidden] { display: none !important; }
