:root{
  --green:#4d5d3b;
  --sage:#7f8f70;
  --paper:#f7f8f3;
  --ink:#26301f;
  --muted:#66705e;
  --line:#dfe5d7;
  --white:#ffffff;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:linear-gradient(180deg,#f7f8f3 0%,#ffffff 100%);
  color:var(--ink);
  font-family:'Noto Kufi Arabic','Inter',sans-serif;
}

body.en{
  font-family:'Inter','Noto Kufi Arabic',sans-serif;
}

/* =========================
   HERO
========================= */

.hero{
  min-height:340px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  position:relative;
  overflow:hidden;
  padding:42px 18px 32px;
}

.brand-logo{
  width:min(260px,74vw);
  max-height:150px;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
  position:relative;
  z-index:1;
}

.hero h1{
  margin:0;
  color:var(--green);
  font-size:clamp(28px,6vw,54px);
  line-height:1.25;
  font-weight:700;
}

body.en .hero h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(34px,6vw,60px);
}

.hero p{
  margin:10px 0 20px;
  color:var(--muted);
  line-height:1.8;
  font-size:15px;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  position:relative;
  z-index:1;
}

.lang-switch a{
  padding:10px 18px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--green);
  text-decoration:none;
  background:var(--white);
  transition:.2s ease;
}

.lang-switch a:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(56,70,45,.08);
}

.lang-switch .active{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}

/* =========================
   DECORATION
========================= */

.leaf{
  position:absolute;
  width:280px;
  height:280px;
  border-radius:50%;
  opacity:.24;
  background:
    radial-gradient(circle at 30% 30%,#80956a 0 8%,transparent 9%),
    radial-gradient(circle at 70% 60%,#80956a 0 7%,transparent 8%),
    radial-gradient(circle at 48% 74%,#80956a 0 5%,transparent 6%);
}

.leaf-a{
  top:-80px;
  right:-40px;
}

.leaf-b{
  bottom:-100px;
  left:-50px;
}

/* =========================
   MAIN
========================= */

main{
  max-width:1050px;
  margin:auto;
  padding:0 18px 54px;
}

.category-tabs{
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(247,248,243,.92);
  backdrop-filter:blur(10px);
  display:flex;
  gap:10px;
  overflow:auto;
  padding:14px 4px;
  margin-bottom:22px;
  border-bottom:1px solid rgba(223,229,215,.8);
}

.category-tabs a{
  white-space:nowrap;
  text-decoration:none;
  color:var(--green);
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:9px 14px;
  font-size:14px;
}

.menu-card{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:28px;
  padding:26px;
  margin:18px 0;
  box-shadow:0 20px 60px rgba(56,70,45,.08);
}

.menu-card h2{
  text-align:center;
  color:var(--green);
  font-size:32px;
  margin:0 0 20px;
  text-transform:uppercase;
  font-family:'Playfair Display','Noto Kufi Arabic',serif;
  line-height:1.25;
}

.items{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 34px;
}

.item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  min-width:0;
}

.name{
  font-weight:600;
  line-height:1.55;
  min-width:0;
}

.dots{
  flex:1 1 auto;
  border-bottom:1px dotted #a7b29c;
  transform:translateY(1px);
  min-width:20px;
}

/* =========================
   FIX NUMBERS DIRECTION
   مهم للأسعار وأرقام الهاتف
========================= */

.price,
.phone-pill{
  direction:ltr !important;
  unicode-bidi:isolate !important;
  white-space:nowrap !important;
  text-align:left !important;
  font-feature-settings:'tnum' 1,'lnum' 1;
}

.price bdi,
.phone-pill bdi{
  direction:ltr !important;
  unicode-bidi:isolate !important;
  white-space:nowrap !important;
  display:inline-block !important;
  text-align:left !important;
}

.price{
  color:var(--green);
  font-weight:700;
  background:#f7f8f3;
  border:1px solid #e5eadf;
  border-radius:999px;
  padding:7px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,#fbfcf8,#f1f4ed);
  padding:30px 18px 34px;
}

.footer-inner{
  max-width:1050px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:center;
}

.footer-brand,
.footer-contact{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:20px;
  box-shadow:0 12px 30px rgba(56,70,45,.06);
}

.footer-logo{
  width:min(220px,70vw);
  max-height:120px;
  object-fit:contain;
  display:block;
  margin:auto;
}

.footer-title{
  color:var(--green);
  font-size:18px;
  font-weight:700;
  margin-bottom:12px;
}

.phones{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.phone-pill{
  width:fit-content;
  background:#f7f8f3;
  border:1px solid #e5eadf;
  border-radius:14px;
  padding:10px 14px;
  color:var(--green);
  font-weight:700;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

/* تموضع رقم الهاتف حسب اللغة فقط، بدون تغيير اتجاه الرقم نفسه */
body.ar .phone-pill{
  margin-right:auto;
  margin-left:0;
}

body.en .phone-pill{
  margin-left:0;
  margin-right:auto;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:820px){
  .items{
    grid-template-columns:1fr;
  }

  .footer-inner{
    grid-template-columns:1fr;
  }
}

@media(max-width:720px){
  .hero{
    min-height:290px;
    padding:34px 16px 26px;
  }

  .brand-logo{
    max-height:118px;
  }

  .menu-card{
    padding:20px;
    border-radius:24px;
  }

  .menu-card h2{
    font-size:28px;
  }

  .item{
    font-size:15px;
  }

  .price{
    font-size:14px;
    padding:6px 10px;
  }
}
