/* ============================================================
   FALAFEL AL MALLAH
   Palette sampled from the shop's own photographs:
   the sign red, the granite counter, the flatbread, the pickles.
   ============================================================ */

:root{
  --sign:#B4132B;          /* the red of the storefront sign  */
  --sign-deep:#7C0A1B;
  --ink:#17110D;           /* near-black, warm                */
  --granite:#232725;       /* the counter top                 */
  --granite-2:#191C1B;
  --paper:#FCF7EE;         /* the whiteboard                  */
  --bread:#F2E4C9;         /* flatbread                       */
  --pickle:#D8A02A;        /* the yellow pickles              */
  --parsley:#4F6B37;
  --line:#E3D5BC;
  --muted:#6E6259;

  --display:"Bricolage Grotesque","Public Sans",system-ui,sans-serif;
  --body:"Public Sans",system-ui,-apple-system,sans-serif;
  --mono:"Space Mono",ui-monospace,monospace;

  --pad:clamp(20px,6vw,88px);
  --tray-h:78px;
}

html[dir="rtl"]{
  --display:"Cairo",system-ui,sans-serif;
  --body:"Cairo",system-ui,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
section[id]{scroll-margin-top:78px}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--body);font-size:17px;line-height:1.6;
  padding-bottom:env(safe-area-inset-bottom);
}
body.has-tray{padding-bottom:calc(var(--tray-h) + env(safe-area-inset-bottom))}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--display);font-weight:800;margin:0}
:focus-visible{outline:3px solid var(--sign);outline-offset:3px;border-radius:4px}

/* Hidden by clipping, never by pushing off-canvas: an element at left:-9999px
   adds 10,000px of scrollable width once the document direction is RTL. */
.skip{position:absolute;width:1px;height:1px;overflow:hidden;
      clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.skip:focus{
  position:fixed;top:8px;inset-inline-start:8px;
  width:auto;height:auto;clip:auto;clip-path:none;
  background:var(--sign);color:#fff;padding:12px 18px;border-radius:8px;z-index:99;
}

/* ── Type scale ────────────────────────────────────────── */
h1{font-size:clamp(2.7rem,7.6vw,6.4rem);line-height:.94;letter-spacing:-.045em}
h2{font-size:clamp(2rem,4.4vw,3.7rem);line-height:1.02;letter-spacing:-.035em}
html[dir="rtl"] h1{line-height:1.18;letter-spacing:0;font-weight:900}
html[dir="rtl"] h2{line-height:1.3;letter-spacing:0;font-weight:900}

.kicker{
  font-family:var(--mono);font-size:.74rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--sign);margin:0 0 .9em;font-weight:700;
}
.kicker.light{color:var(--pickle)}
html[dir="rtl"] .kicker{
  font-family:var(--body);letter-spacing:0;text-transform:none;
  font-size:.9rem;font-weight:600;
}

/* ── Header ────────────────────────────────────────────── */
.nav{
  position:sticky;top:0;z-index:40;
  display:flex;align-items:center;gap:24px;
  padding:10px var(--pad);
  background:rgba(252,247,238,.88);
  backdrop-filter:blur(16px) saturate(1.4);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:11px;margin-inline-end:auto}
.brand-mark{
  position:relative;flex:none;width:34px;height:34px;border-radius:7px;
  background:var(--sign);display:block;
}
.brand-mark span{
  position:absolute;width:6px;height:6px;border-radius:50%;background:var(--bread);
}
.brand-mark span:nth-child(1){top:5px;left:5px}
.brand-mark span:nth-child(2){top:5px;right:5px}
.brand-mark span:nth-child(3){bottom:5px;left:5px}
.brand-mark span:nth-child(4){bottom:5px;right:5px}
.brand-name{display:flex;flex-direction:column;line-height:1.1}
.brand-name b{font-family:var(--display);font-size:1rem;letter-spacing:-.02em}
.brand-name i{font-family:var(--mono);font-style:normal;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
html[dir="rtl"] .brand-name i{font-family:var(--body);letter-spacing:0;text-transform:none;font-size:.72rem}

.nav-links{display:flex;gap:26px;font-size:.9rem;font-weight:600}
.nav-links a{padding:6px 0;border-bottom:2px solid transparent}
.nav-links a:hover{border-color:var(--sign);color:var(--sign)}

.nav-toggle{
  display:none;flex:none;width:42px;height:42px;padding:0;cursor:pointer;
  border:1.5px solid var(--line);background:#fff;color:var(--ink);border-radius:12px;
  place-items:center;
}
.nav-toggle svg{width:20px;height:20px}
.nav-toggle path{transition:transform .22s ease,opacity .18s ease;transform-origin:center}
body.nav-open .nav-toggle{border-color:var(--sign);color:var(--sign)}
body.nav-open .nav-toggle .bar1{transform:translateY(5px) rotate(45deg)}
body.nav-open .nav-toggle .bar2{opacity:0}
body.nav-open .nav-toggle .bar3{transform:translateY(-5px) rotate(-45deg)}

.lang{
  flex:none;font-family:var(--body);font-size:.85rem;font-weight:700;
  border:1.5px solid var(--sign);color:var(--sign);background:transparent;
  border-radius:999px;padding:8px 16px;cursor:pointer;min-height:40px;
}
.lang:hover{background:var(--sign);color:#fff}

/* ── Buttons ───────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:52px;padding:14px 26px;border-radius:999px;
  font-weight:700;font-size:1rem;border:1.5px solid transparent;
  transition:transform .15s ease,background .15s ease;
}
.btn:active{transform:scale(.98)}
.btn-solid{background:var(--sign);color:#fff}
.btn-solid:hover{background:var(--sign-deep)}
.btn-line{border-color:rgba(255,255,255,.5);color:#fff;background:rgba(255,255,255,.08)}
.btn-line:hover{background:rgba(255,255,255,.18)}
.btn-wide{width:100%;margin-top:8px}

/* ── Hero ──────────────────────────────────────────────── */
.hero{position:relative;min-height:min(88vh,760px);display:grid;align-items:end;isolation:isolate}
.hero-img,.hero-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 44%}
.hero-scrim{
  position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(18,10,7,.92) 4%,rgba(18,10,7,.42) 46%,rgba(18,10,7,.18) 100%),
    linear-gradient(to right,rgba(18,10,7,.72),rgba(18,10,7,0) 62%);
}
html[dir="rtl"] .hero-scrim{
  background:
    linear-gradient(to top,rgba(18,10,7,.92) 4%,rgba(18,10,7,.42) 46%,rgba(18,10,7,.18) 100%),
    linear-gradient(to left,rgba(18,10,7,.72),rgba(18,10,7,0) 62%);
}
.hero-body{position:relative;z-index:2;color:#fff;padding:clamp(46px,9vh,110px) var(--pad);max-width:940px}
.hero .eyebrow{
  font-family:var(--mono);font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--pickle);margin:0 0 1.1em;
}
.hero .eyebrow em{opacity:.55;font-style:normal;margin:0 .5em}
html[dir="rtl"] .hero .eyebrow{font-family:var(--body);letter-spacing:0;text-transform:none;font-size:.95rem}
.hero .lede{font-size:clamp(1.05rem,1.5vw,1.3rem);max-width:620px;color:#F6E9D6;margin:1.1em 0 0}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}

/* ── Generic section ───────────────────────────────────── */
.section{padding:clamp(64px,9vw,132px) var(--pad);max-width:1440px;margin-inline:auto}
.section p{color:var(--muted);max-width:60ch}
.section h2 + p,.section p + p{margin-top:1em}

/* ── Story ─────────────────────────────────────────────── */
.story{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(32px,6vw,90px);align-items:start}
.facts{margin:0;display:grid;gap:10px}
.facts div{
  display:flex;align-items:baseline;gap:18px;
  padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:16px;
}
.facts dt{
  font-family:var(--mono);font-weight:700;font-size:2rem;color:var(--sign);
  line-height:1;flex:none;min-width:3.2ch;
}
.facts dd{margin:0;font-size:.94rem;color:var(--muted)}

/* ── Craft ─────────────────────────────────────────────── */
.craft{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,6vw,90px);align-items:center}
/* Every photograph on the page shares one aspect ratio and one radius. */
.craft-media img{border-radius:16px;aspect-ratio:4/3;object-fit:cover;width:100%}
.chips{list-style:none;display:flex;gap:12px;padding:0;margin:32px 0 0}
.chips li{
  display:flex;flex-direction:column;gap:2px;
  padding:14px 24px;border:1.5px solid var(--sign);border-radius:14px;
}
.chips b{font-family:var(--display);font-size:1.15rem}
.chips span{font-family:"Cairo",sans-serif;font-size:.95rem;color:var(--sign)}

/* ── The board (signature) ─────────────────────────────── */
.board-zone{
  background:var(--granite);
  background-image:radial-gradient(rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:5px 5px;
  padding:clamp(64px,9vw,120px) var(--pad);
  color:var(--bread);
}
.board-head{max-width:820px;margin:0 auto clamp(28px,4vw,48px)}
.board-head h2{color:#fff}
.board-note{
  font-family:var(--mono);font-size:.8rem;line-height:1.7;
  color:rgba(242,228,201,.62);margin:1.2em 0 0;max-width:56ch;
}
html[dir="rtl"] .board-note{font-family:var(--body);font-size:.92rem}

.board{
  max-width:1080px;margin-inline:auto;
  background:var(--paper);color:var(--ink);
  border-radius:6px;
  box-shadow:0 30px 70px rgba(0,0,0,.42);
  overflow:hidden;
}
.board-fallback{padding:40px;text-align:center;color:var(--muted)}

.cat{border-top:1px solid var(--line)}
.cat:first-child{border-top:0}
.cat-name{
  display:flex;align-items:baseline;gap:12px;
  margin:0;padding:20px clamp(18px,3vw,34px) 10px;
  font-family:var(--display);font-size:1.15rem;letter-spacing:-.01em;
}
.cat-name::before{
  content:"";width:26px;height:4px;border-radius:2px;background:var(--sign);flex:none;
  align-self:center;
}

.row{
  display:grid;
  grid-template-columns:1fr auto auto;
  align-items:center;gap:clamp(10px,2vw,22px);
  padding:12px clamp(18px,3vw,34px);
  border-top:1px dashed #DCCBB1;
}
.row:hover{background:#FFFCF6}
.row.in{background:#FDF1F2}
.row-name{min-width:0}
.row-name b{display:block;font-weight:600;font-size:1rem;line-height:1.3}
.row-name i{
  display:block;font-style:normal;font-size:.78rem;color:var(--muted);margin-top:2px;
}
.row-price{
  font-family:var(--mono);font-size:.95rem;font-weight:700;
  white-space:nowrap;text-align:end;
}
.row-price s{display:block;font-size:.68rem;color:var(--muted);text-decoration:none;font-weight:400}

.step{display:flex;align-items:center;gap:2px;flex:none}
.step button{
  width:38px;height:38px;flex:none;border-radius:50%;cursor:pointer;
  border:1.5px solid var(--line);background:#fff;color:var(--ink);
  font-size:1.2rem;line-height:1;font-family:var(--body);
  display:grid;place-items:center;transition:.14s;
}
.step button:hover{border-color:var(--sign);color:var(--sign)}
.step button.add{border-color:var(--sign);color:var(--sign);font-weight:700}
.step button.add:hover{background:var(--sign);color:#fff}
.step .qty{
  font-family:var(--mono);font-weight:700;font-size:1rem;
  min-width:2.2ch;text-align:center;
}
.step .minus[hidden],.step .qty[hidden]{display:none}

.board-foot{
  max-width:1080px;margin:26px auto 0;text-align:center;
  color:rgba(242,228,201,.6);font-size:.92rem;
}

/* ── Gallery ───────────────────────────────────────────── */
.gallery{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
  padding:clamp(64px,9vw,120px) var(--pad);max-width:1440px;margin-inline:auto;
}
.gallery figure{margin:0}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px}
.gallery figcaption{
  margin-top:10px;font-size:.85rem;color:var(--muted);
  font-family:var(--mono);line-height:1.5;
}
html[dir="rtl"] .gallery figcaption{font-family:var(--body);font-size:.92rem}

/* ── Visit ─────────────────────────────────────────────── */
.visit{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,6vw,90px);align-items:center}
.contact{
  background:#fff;border:1px solid var(--line);border-radius:20px;
  padding:clamp(22px,3vw,34px);box-shadow:0 18px 50px rgba(80,40,20,.09);
}
.contact-row{display:flex;gap:14px;align-items:flex-start;padding:15px 0;border-top:1px solid var(--line)}
.contact-row:first-of-type{border-top:0;padding-top:0}
/* the label is carried by the icon; the text stays for screen readers */
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
    clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.ico{
  flex:none;width:38px;height:38px;border-radius:11px;
  display:grid;place-items:center;
  background:rgba(181,19,43,.07);color:var(--sign);
}
.ico svg{width:20px;height:20px;display:block}
.contact-val{min-width:0;padding-top:2px}
.contact-val p{margin:0;font-size:.98rem;color:var(--muted)}
.contact-big{
  font-family:var(--mono);font-size:1.35rem;font-weight:700;color:var(--sign);
  display:inline-block;line-height:1.2;
}
.contact-map{
  display:inline-block;margin-top:6px;font-weight:700;color:var(--sign);
  border-bottom:2px solid var(--sign);
}

/* ── Sticky order tray ─────────────────────────────────── */
.tray{
  position:fixed;left:0;right:0;bottom:0;z-index:50;
  background:var(--granite-2);color:var(--bread);
  box-shadow:0 -14px 44px rgba(0,0,0,.4);
  padding-bottom:env(safe-area-inset-bottom);
}
.tray-bar{
  display:flex;align-items:center;gap:12px;
  padding:12px clamp(14px,4vw,28px);
  max-width:1080px;margin-inline:auto;min-height:var(--tray-h);
}
.tray-summary{
  display:flex;align-items:center;gap:12px;flex:1;min-width:0;
  background:none;border:0;color:inherit;cursor:pointer;
  padding:6px;text-align:start;font-family:inherit;
}
.tray-summary b{
  flex:none;width:34px;height:34px;border-radius:50%;background:var(--sign);color:#fff;
  display:grid;place-items:center;font-family:var(--mono);font-size:.95rem;
}
.tray-summary span{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.tray-summary em{font-family:var(--mono);font-style:normal;font-weight:700;font-size:1.05rem}
.tray-summary i{font-style:normal;font-size:.78rem;color:rgba(242,228,201,.6)}
.tray-summary::after{
  content:"▲";font-size:.6rem;margin-inline-start:6px;color:rgba(242,228,201,.6);
  transition:transform .2s;
}
.tray-summary[aria-expanded="true"]::after{transform:rotate(180deg)}
.btn-send{
  background:#1FA855;color:#fff;flex:none;min-height:48px;padding:12px 22px;font-size:.98rem;
}
.btn-send:hover{background:#17853F}

.tray-sheet{
  max-width:1080px;margin-inline:auto;
  padding:18px clamp(14px,4vw,28px) 4px;
  max-height:min(58vh,460px);overflow-y:auto;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.tray-sheet-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.tray-sheet h3{font-size:1.1rem;color:#fff}
.tray-close{
  background:none;border:0;color:var(--bread);font-size:1.8rem;line-height:1;
  cursor:pointer;padding:0 8px;
}
.tray-lines{list-style:none;margin:0 0 16px;padding:0}
.tray-lines li{
  display:flex;justify-content:space-between;gap:16px;
  padding:9px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:.94rem;
}
.tray-lines b{font-family:var(--mono);font-weight:700;white-space:nowrap}
.tray-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:14px}
.tray-fields .full{grid-column:1/-1}
.tray-fields label{display:flex;flex-direction:column;gap:5px;font-size:.78rem;color:rgba(242,228,201,.68)}
.tray-fields input{
  font-family:inherit;font-size:1rem;padding:11px 13px;border-radius:10px;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;
}
.tray-fields input::placeholder{color:rgba(242,228,201,.35)}
.tray-fields input:focus{border-color:var(--pickle);outline:none}

/* ── Back to top, as a falafel ─────────────────────────── */
/* The two floats stack on the same edge: back-to-top at the bottom,
   WhatsApp directly above it. Same 58px footprint, same shadow language. */
.wa-float{
  position:fixed;bottom:calc(92px + var(--float-lift,0px));inset-inline-end:22px;z-index:45;
  width:58px;height:58px;border-radius:50%;background:#25D366;
  display:grid;place-items:center;
  filter:drop-shadow(0 9px 18px rgba(10,60,28,.45));
  transition:transform .2s cubic-bezier(.34,1.4,.64,1), filter .2s ease, opacity .2s ease;
}
.wa-float svg{width:34px;height:34px;display:block}
.wa-float:hover{transform:translateY(-4px);filter:drop-shadow(0 14px 22px rgba(10,60,28,.5))}
.wa-float:active{transform:translateY(-1px) scale(.94)}
/* the tray already carries a green Send button - one green CTA at a time */
body.has-tray .wa-float{opacity:0;transform:scale(.7);pointer-events:none}
/* belt and braces for engines without inset-inline-* support */
html[dir="rtl"] .wa-float,html[dir="rtl"] .to-top{right:auto;left:22px}
html[dir="ltr"] .wa-float,html[dir="ltr"] .to-top{left:auto;right:22px}

.to-top{
  position:fixed;bottom:calc(22px + var(--float-lift,0px));inset-inline-end:22px;z-index:45;
  width:58px;height:58px;padding:0;border:0;background:none;cursor:pointer;
  display:block;line-height:0;
  filter:drop-shadow(0 9px 16px rgba(60,28,8,.45));
  transition:transform .2s cubic-bezier(.34,1.4,.64,1), filter .2s ease;
}
.to-top .falafel{width:100%;height:100%;display:block}
/* the arrow is part of the photograph, so the button lifts and grows
   rather than rotating - a spinning arrow would stop meaning "up" */
.to-top:hover{transform:translateY(-4px) scale(1.06);filter:drop-shadow(0 15px 22px rgba(60,28,8,.5))}
.to-top:active{transform:translateY(-1px) scale(.95)}
.to-top{transition:transform .2s cubic-bezier(.34,1.4,.64,1),filter .2s ease,opacity .2s ease}
.to-top:focus-visible{outline:3px solid var(--pickle);outline-offset:4px;border-radius:50%}
/* lift clear of the order tray when it is showing */
body.has-tray .to-top{bottom:calc(var(--tray-h) + 18px + var(--float-lift,0px))}

/* ── Footer ────────────────────────────────────────────── */
footer{
  /* equal side columns put the credit on the true centre of the page,
     regardless of how wide the copyright and tagline happen to be */
  display:grid;grid-template-columns:1fr auto 1fr;gap:10px 30px;
  align-items:center;
  padding:30px var(--pad);background:var(--ink);color:rgba(242,228,201,.72);
  font-size:.85rem;
}
/* tagline opens, credit centred, copyright closes - all mirror in Arabic */
.foot-tag{text-align:start;justify-self:start}
.foot-credit{text-align:center;justify-self:center}
.foot-copy{text-align:end;justify-self:end}
.pf{
  color:#F2E4C9;font-weight:700;
  border-bottom:1px solid rgba(216,160,42,.45);
  transition:color .16s ease,border-color .16s ease;
}
.pf:hover,.pf:focus-visible{color:var(--pickle);border-bottom-color:var(--pickle)}

/* ── Responsive ────────────────────────────────────────── */
/* On a phone the floats overlap the row steppers, so they retreat while the
   menu is on screen. The tray takes over as the call to action there anyway. */
@media(max-width:1000px){
  body.board-in-view .wa-float,
  body.board-in-view .to-top{opacity:0;transform:scale(.8);pointer-events:none}
}

@media(max-width:1000px){
  .nav-toggle{display:grid}
  /* the links become a panel that drops from under the header */
  .nav-links{
    position:absolute;top:100%;left:0;right:0;
    display:flex;flex-direction:column;gap:0;
    background:var(--paper);border-bottom:1px solid var(--line);
    box-shadow:0 18px 40px rgba(60,30,15,.14);
    padding:6px var(--pad) 12px;
    opacity:0;visibility:hidden;transform:translateY(-8px);
    transition:opacity .18s ease,transform .18s ease,visibility .18s;
  }
  body.nav-open .nav-links{opacity:1;visibility:visible;transform:none}
  .nav-links a{
    padding:14px 0;border-bottom:1px solid var(--line);border-radius:0;
    font-size:1rem;
  }
  .nav-links a:last-child{border-bottom:0}
  .nav-links a:hover{border-color:var(--line);color:var(--sign)}
  .story,.craft,.visit{grid-template-columns:1fr}
  .craft-media{order:2;padding-bottom:0;padding-inline-end:0}
  .craft-media img{aspect-ratio:16/11}
  .craft-media-2{display:none}
  .gallery{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  body{font-size:16px}
  .hero{min-height:82vh}
  .row{grid-template-columns:1fr auto;row-gap:8px;padding-block:14px}
  .row-price{grid-row:2;grid-column:1;text-align:start;font-size:.9rem}
  .row-price s{display:inline;margin-inline-start:8px}
  .step{grid-row:1/3;grid-column:2}
  footer{grid-template-columns:1fr;text-align:center;gap:8px}
  .foot-credit,.foot-tag,.foot-copy{text-align:center;justify-self:center}
  .wa-float{width:52px;height:52px;bottom:calc(80px + var(--float-lift,0px));inset-inline-end:16px}
  html[dir="rtl"] .wa-float,html[dir="rtl"] .to-top{left:16px;right:auto}
  html[dir="ltr"] .wa-float,html[dir="ltr"] .to-top{right:16px;left:auto}
  .wa-float svg{width:30px;height:30px}
  .to-top{width:52px;height:52px;bottom:calc(18px + var(--float-lift,0px));inset-inline-end:16px}
  .tray-fields{grid-template-columns:1fr}
  .btn-send{padding:12px 18px;font-size:.92rem}
  .chips{flex-wrap:wrap}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
