/* =========================================================
   OONJA BURRITO — design tokens
   ========================================================= */
:root{
  --cream:      #EEE8D8;
  --cream-2:    #F6F2E6;
  --ink:        #1C231D;
  --deep-green: #11393B;
  --forest:     #2E5240;
  --clay:       #C25A2E;
  --clay-dark:  #A24A25;
  --gold:       #C99A45;
  --line:       rgba(31,58,44,0.16);
  --shadow:     0 12px 30px -18px rgba(28,35,29,0.35);
  --shadow-float: 0 40px 70px -32px rgba(28,35,29,0.38), 0 10px 24px -14px rgba(28,35,29,0.22);

  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Fraunces', serif;

  --radius: 18px;
  --container: 1180px;
  --header-h: 68px;
}

*{ box-sizing:border-box; }
html, body{
  height:100%;
  overflow:hidden; /* the page itself never scrolls — slides handle motion */
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--font-fa);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overscroll-behavior:none;
}
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; }
h1,h2,h3{ margin:0; font-weight:800; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background:var(--clay); color:var(--cream-2); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; }
  .slide{ transition-duration:0.001ms !important; }
}

/* =========================================================
   Preloader
   ========================================================= */
.preloader{
  position:fixed; inset:0; z-index:500;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:30px;
  background:var(--cream);
  transition:opacity .6s ease;
}
.preloader.is-hidden{ opacity:0; pointer-events:none; }
.preloader-logo{
  width:min(50vw, 220px);
  height:auto;
  animation:preloaderPulse 1.7s ease-in-out infinite;
}
.preloader-bar{
  width:150px; height:4px;
  border-radius:999px;
  background:rgba(31,58,44,0.15);
  overflow:hidden;
}
.preloader-bar span{
  display:block;
  height:100%; width:35%;
  border-radius:999px;
  background:var(--clay);
  animation:preloaderBar 1.3s ease-in-out infinite;
}
@keyframes preloaderPulse{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.7; transform:scale(.96); }
}
@keyframes preloaderBar{
  0%{ transform:translateX(-120%); }
  100%{ transform:translateX(380%); }
}
@media (prefers-reduced-motion: reduce){
  .preloader-logo{ animation:none; }
  .preloader-bar span{ animation:none; width:100%; }
}

/* =========================================================
   Header (fixed, always visible)
   ========================================================= */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--header-h);
  background:rgba(238,232,216,0.9);
  backdrop-filter:blur(10px) saturate(1.1);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--container);
  height:100%;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:20px;
}
.brand{
  display:flex; align-items:center;
  flex-shrink:0;
}
.brand-logotype{ height:34px; width:auto; }

.cat-nav{
  flex:1; min-width:0;
  display:flex; align-items:center;
}
.cat-nav-track{
  display:flex; gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
  padding:2px;
}
.cat-nav-track::-webkit-scrollbar{ display:none; }
.cat-nav-track a{
  flex-shrink:0;
  font-size:0.86rem;
  font-weight:600;
  padding:8px 14px;
  border-radius:999px;
  color:var(--forest);
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
.cat-nav-track a:hover,
.cat-nav-track a.active{
  background:var(--deep-green);
  color:var(--cream-2);
}

.header-gallery{
  flex-shrink:0;
  font-size:0.86rem;
  font-weight:700;
  color:var(--forest);
  padding:9px 18px;
  border-radius:999px;
  border:1.5px solid var(--forest);
  transition:background .15s ease, color .15s ease;
}
.header-gallery:hover{ background:var(--deep-green); color:var(--cream-2); border-color:var(--deep-green); }

.header-call{
  flex-shrink:0;
  display:flex; align-items:center; gap:8px;
  background:var(--clay);
  color:var(--cream-2);
  padding:9px 16px;
  border-radius:999px;
  font-size:0.85rem;
  font-weight:600;
  box-shadow:var(--shadow);
  transition:background .15s ease;
}
.header-call:hover{ background:var(--clay-dark); }
.header-call .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--gold);
  animation:pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.5; transform:scale(1.3); }
}

@media (max-width: 860px){
  .header-call span:last-child{ display:none; }
  .header-call{ padding:9px 12px; }
}

/* =========================================================
   Stage & Slides
   ========================================================= */
.stage{
  position:fixed;
  top:var(--header-h); left:0; right:0; bottom:0;
  overflow:hidden;
}
.slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
  will-change:opacity, transform;
}
.slide.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) !important;
  z-index:2;
}
.slide-inner{
  height:100%;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}

/* ---- Video hero slide ---- */
.slide--video .video-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  height:100%;
  padding:24px 20px 40px;
  overflow:hidden;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(201,154,69,0.14), transparent 55%),
    var(--deep-green);
}
.logo-video{
  height:70vh;
  width:auto;
  max-width:92vw;
  max-height:70dvh;
  object-fit:contain;
  border-radius:20px;
  filter:drop-shadow(0 30px 50px rgba(0,0,0,0.35));
}
.video-tagline{
  color:var(--cream-2);
  font-size:clamp(1.05rem, 2.6vw, 1.4rem);
  font-weight:700;
  text-align:center;
}

.scroll-hint{
  position:absolute;
  bottom:18px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:none; border:none; color:rgba(238,232,216,0.65);
  font-size:0.72rem; font-weight:600;
  animation:bob 2.2s ease-in-out infinite;
}
.scroll-hint svg{ width:18px; height:18px; }
@keyframes bob{
  0%,100%{ transform:translate(-50%, 0); }
  50%{ transform:translate(-50%, 8px); }
}

/* ---- Category slides: centered, floating panel ---- */
.slide--category .slide-inner{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:36px 20px 60px;
}
.floating-panel{
  width:100%;
  max-width:960px;
  background:var(--cream-2);
  border:1px solid var(--line);
  border-radius:32px;
  box-shadow:var(--shadow-float);
  padding:36px clamp(20px, 4vw, 52px) 44px;
  margin:auto;
  animation:floaty 6s ease-in-out infinite alternate;
}
@keyframes floaty{
  from{ transform:translateY(0); }
  to{ transform:translateY(-10px); }
}
@media (prefers-reduced-motion: reduce){
  .floating-panel{ animation:none; }
}

.category-head{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:10px;
}
.category-arch{ width:32px; height:38px; color:var(--clay); flex-shrink:0; }
.category-head h2{ font-size:1.6rem; color:var(--deep-green); }
.category-note{
  font-size:0.86rem;
  color:var(--forest);
  opacity:0.8;
  margin:6px 0 22px 0;
  padding-right:48px;
}
.category-head + .items-grid{ margin-top:22px; }

.items-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:14px;
}
.item{
  position:relative;
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.item:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
  border-color:rgba(194,90,46,0.35);
}
.item h3{ font-size:0.98rem; font-weight:700; color:var(--ink); padding-left:54px; }
.item h3 small{ display:block; font-weight:500; font-size:0.76rem; color:var(--forest); opacity:0.75; margin-top:2px; }
.item p{ font-size:0.82rem; color:var(--forest); opacity:0.85; padding-left:54px; }
.item .price{
  position:absolute;
  left:14px; top:14px;
  background:var(--deep-green);
  color:var(--cream-2);
  font-weight:800;
  font-size:0.82rem;
  padding:5px 10px;
  border-radius:999px;
  direction:ltr;
}
.item--spicy{ border-color:rgba(194,90,46,0.4); }

/* ---- Unavailable items (driven by availability.txt) ---- */
.item.is-unavailable{
  opacity:0.5;
  filter:grayscale(0.6);
  pointer-events:none;
}
.item.is-unavailable:hover{ transform:none; box-shadow:none; }
.item.is-unavailable .price{ background:var(--forest); }
.item.is-unavailable::after{
  content:"ناموجود";
  position:absolute;
  left:14px; bottom:14px;
  background:var(--ink);
  color:var(--cream-2);
  font-size:0.7rem;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
}
.chip{
  display:inline-block;
  font-size:0.62rem;
  font-weight:700;
  background:var(--clay);
  color:var(--cream-2);
  padding:2px 8px;
  border-radius:999px;
  margin-right:6px;
  vertical-align:middle;
}

/* ---- Footer / contact slide ---- */
.slide--footer .floating-panel{
  max-width:640px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  background:var(--deep-green);
  color:var(--cream-2);
  border-color:transparent;
}
.footer-logo{ height:120px; width:auto; margin-bottom:4px; }
.footer-tagline{ font-weight:700; font-size:1.1rem; }
.footer-contact{ display:flex; flex-direction:column; gap:8px; margin:6px 0; }
.footer-contact a{ font-size:0.95rem; opacity:0.9; transition:opacity .15s ease, color .15s ease; }
.footer-contact a:hover{ opacity:1; color:var(--gold); }
.footer-note p{ font-size:0.8rem; opacity:0.65; margin-bottom:6px; }
.footer-copy{ font-size:0.74rem; opacity:0.5; margin-top:10px; }

/* =========================================================
   Desktop dot navigation
   ========================================================= */
.dots-nav{
  position:fixed;
  top:50%; left:18px; transform:translateY(-50%);
  z-index:150;
  display:flex; flex-direction:column; gap:10px;
}
.dots-nav button{
  width:10px; height:10px; border-radius:50%;
  background:transparent;
  border:1.5px solid var(--forest);
  opacity:0.5;
  padding:0;
  transition:opacity .2s ease, background .2s ease, transform .2s ease;
}
.dots-nav button:hover{ opacity:0.9; transform:scale(1.15); }
.dots-nav button.active{
  background:var(--clay);
  border-color:var(--clay);
  opacity:1;
  transform:scale(1.25);
}

@media (max-width: 900px){
  .dots-nav{ display:none; }
}

/* =========================================================
   Floating mobile action bar + categories overlay
   ========================================================= */
.float-bar{
  display:none;
  position:fixed;
  bottom:14px; left:50%; transform:translateX(-50%);
  z-index:210;
  background:var(--deep-green);
  border-radius:999px;
  box-shadow:0 14px 34px -12px rgba(0,0,0,0.45);
  padding:8px;
  gap:2px;
  max-width:calc(100vw - 20px);
  overflow-x:auto;
  scrollbar-width:none;
}
.float-bar::-webkit-scrollbar{ display:none; }
.float-btn{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  flex-shrink:0;
  color:var(--cream-2);
  font-size:0.6rem;
  font-weight:600;
  padding:8px 11px;
  border-radius:999px;
  border:none;
  background:none;
  white-space:nowrap;
  transition:background .15s ease;
}
.float-btn svg{ width:18px; height:18px; }
.float-btn:hover, .float-btn:active{ background:rgba(238,232,216,0.14); }
.float-btn--menu{ color:var(--gold); }

.mobile-cats-panel{
  position:fixed; inset:0;
  z-index:205;
  background:rgba(20,28,22,0.55);
  backdrop-filter:blur(3px);
  display:flex; align-items:flex-end;
}
.mobile-cats-panel[hidden]{ display:none; }
.mobile-cats-sheet{
  width:100%;
  background:var(--cream-2);
  border-radius:26px 26px 0 0;
  padding:20px 16px calc(100px + env(safe-area-inset-bottom));
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  max-height:75vh;
  overflow-y:auto;
}
.mobile-cats{
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 10px;
  font-size:0.9rem;
  font-weight:700;
  color:var(--deep-green);
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease, color .15s ease;
}
.mobile-cats:active{ background:var(--deep-green); color:var(--cream-2); }

@media (max-width: 640px){
  .float-bar{ display:flex; }
  .cat-nav{ display:none; }
  .header-gallery{ display:none; }
  .header-inner{ justify-content:space-between; }
  .logo-video{ height:60vh; max-height:60dvh; }
  .floating-panel{ border-radius:24px; padding:28px 18px 36px; }
}

@media (min-width: 641px) and (max-width: 880px){
  .header-call span:last-child{ display:none; }
}
