/* ===========================================
   WALEEF — وليف Menu
   Palette: #f3f2e8 · #d7d2bd · #c6c7b8 · #3f3a1b · #211f20
   =========================================== */

@font-face{
  font-family: 'Ali Meshref';
  src: url('assets/fonts/AliMeshref.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Thmanyah Display';
  src: url('assets/fonts/thmanyahserifdisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Thmanyah Display';
  src: url('assets/fonts/thmanyahserifdisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: 'Thmanyah Display';
  src: url('assets/fonts/thmanyahserifdisplay-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --cream-50:  #f3f2e8;
  --cream-100: #d7d2bd;
  --cream-200: #c6c7b8;
  --olive-900: #3f3a1b;
  --olive-700: #5a5128;
  --ink:       #211f20;
  --accent:    #8a7a3f;

  --font-ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-ar-serif: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-en: 'IBM Plex Sans Arabic', system-ui, sans-serif;

  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 72px; }
body{
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--cream-50);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }

/* ================ TOP NAV ================ */
.top-nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(243,242,232,.85);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
          backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(63,58,27,.10);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.top-nav.visible{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.top-nav .nav-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.top-nav .nav-links::-webkit-scrollbar{ display: none; }
.top-nav .nav-links a{
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--olive-900);
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: .95rem;
  font-weight: 600;
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.top-nav .nav-links a:hover,
.top-nav .nav-links a:focus-visible{
  background: rgba(63,58,27,.10);
  color: var(--olive-900);
}
.top-nav .nav-links a.active{
  background: var(--olive-900);
  color: var(--cream-50);
}
@media (max-width: 480px){
  .top-nav{ padding: 8px 10px; }
  .top-nav .nav-links a{ padding: 6px 10px; font-size: .85rem; }
}

/* Subtle cream gradient backdrop */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(198,199,184,.5), transparent 60%),
    radial-gradient(900px 700px at -10% 50%, rgba(215,210,189,.35), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(63,58,27,.08), transparent 60%);
}

/* Floating coffee beans */
.floating-beans{ position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bean{
  position: absolute;
  width: 20px; height: 30px;
  background: var(--olive-900);
  border-radius: 50% / 60%;
  opacity: .07;
}
.bean::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 46%, rgba(243,242,232,.5) 48% 52%, transparent 54%);
  transform: rotate(20deg);
}
.b1{ top: 10%; left: 8%;  animation: beanFloat 22s ease-in-out infinite; }
.b2{ top: 35%; right: 6%; animation: beanFloat 26s ease-in-out infinite reverse; }
.b3{ top: 60%; left: 10%; animation: beanFloat 30s ease-in-out infinite; }
.b4{ top: 80%; right: 12%;animation: beanFloat 24s ease-in-out infinite reverse; }
.b5{ top: 45%; left: 50%; animation: beanFloat 34s ease-in-out infinite; }
@keyframes beanFloat{
  0%,100%{ transform: translate(0,0) rotate(20deg); }
  50%   { transform: translate(30px,-40px) rotate(200deg); }
}

/* ================ INTRO ================ */
.intro{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}
.intro-logo{
  width: clamp(220px, 30vw, 360px);
  height: auto;
  animation: logoIn 1.2s var(--ease-out) both;
  filter: drop-shadow(0 10px 30px rgba(63,58,27,.12));
}
.intro-line{
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
  animation: fadeUp 1s var(--ease-out) .5s both;
}
.intro-line span{
  font-family: var(--font-ar-serif);
  font-size: 1.3rem;
  color: var(--olive-900);
}
.intro-line > span:last-child{ letter-spacing: 3px; }
.intro-line .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--olive-900);
  opacity: .6;
}
.intro-sub{
  font-size: .95rem;
  color: var(--olive-700);
  margin: 0;
  opacity: .8;
  animation: fadeUp 1s var(--ease-out) .8s both;
}
.scroll-arrow{
  margin-top: 40px;
  color: var(--olive-900);
  animation: arrow 2.2s ease-in-out infinite, fadeUp 1s var(--ease-out) 1s both;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(63,58,27,.2);
  background: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.scroll-arrow:hover{
  background: var(--olive-900);
  color: var(--cream-50);
  border-color: var(--olive-900);
}
.menu-card{ cursor: pointer; }

/* ============== BOTTOM SHEET ============== */
.sheet{
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
.sheet.open{ visibility: visible; pointer-events: auto; }
.sheet-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(33,31,32,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.sheet.open .sheet-backdrop{ opacity: 1; }
.sheet-panel{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 20px 22px 32px;
  box-shadow: 0 -20px 60px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
  max-height: 92vh;
  overflow: auto;
}
.sheet.open .sheet-panel{ transform: translateY(0); }
.sheet-handle{
  width: 48px;
  height: 5px;
  background: rgba(63,58,27,.2);
  border-radius: 999px;
  margin: 2px auto 16px;
}
.sheet-close{
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--cream-50);
  color: var(--olive-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.sheet-close:hover{ background: var(--olive-900); color: var(--cream-50); }
.sheet-media{
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-50);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
}
.sheet-media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.sheet-info{ text-align: center; }
.sheet-info h3{
  font-family: var(--font-ar);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--olive-900);
  margin: 0 0 4px;
}
.sheet-info p{
  font-family: var(--font-en);
  font-style: italic;
  color: var(--olive-700);
  opacity: .75;
  margin: 0 0 18px;
  font-size: 1rem;
}
.sheet-price{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(63,58,27,.06), rgba(63,58,27,.02));
  border: 1px solid rgba(63,58,27,.1);
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}
.sheet-price::after{
  content: "";
  display: inline-block;
  width: .8em;
  height: .9em;
  background-color: currentColor;
  -webkit-mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
          mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
}

body.sheet-open{ overflow: hidden; }
@keyframes logoIn{
  0%  { opacity: 0; transform: translateY(30px) scale(.9); }
  100%{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp{
  0%  { opacity: 0; transform: translateY(20px); }
  100%{ opacity: 1; transform: translateY(0); }
}
@keyframes arrow{
  0%,100%{ transform: translateY(0); opacity: .7; }
  50%    { transform: translateY(14px); opacity: 1; }
}

/* ================ SECTIONS ================ */
.menu-section{
  padding: 80px 6vw 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.sec-head{
  text-align: center;
  margin-bottom: 50px;
}
.eyebrow{
  display: inline-block;
  font-family: var(--font-ar-serif);
  font-size: 2.2rem;
  color: var(--olive-900);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.sec-head h2{
  margin: 0;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 8px;
  font-weight: 400;
  color: var(--olive-700);
  text-transform: uppercase;
  opacity: .7;
}
.sec-head::after{
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--olive-900);
  margin: 20px auto 0;
  opacity: .4;
}

/* ================ 3D REVEAL ON SCROLL ================ */
.reveal{
  opacity: 0;
  transform: translateY(80px) rotateX(-18deg) scale(.92);
  transform-origin: center bottom;
  transition:
    opacity .9s var(--ease-out),
    transform 1s var(--ease-out);
  will-change: transform, opacity;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0) rotateX(0) scale(1);
}

/* ================ PASTRIES GRID ================ */
.menu-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  perspective: 1400px;
}
.menu-card{
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(33,31,32,.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
}
.menu-card:hover{
  transform: translateY(-10px) rotateX(4deg);
  box-shadow: 0 30px 70px rgba(33,31,32,.14);
}
.menu-card .media{
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: var(--cream-50);
}
.menu-card .media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.25);
  transform-origin: center 38%;
  transition: transform .8s var(--ease);
}
.menu-card:hover .media img{ transform: scale(1.32); }
.menu-card .body{ padding: 22px 24px 26px; }
.menu-card .row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.menu-card h3{
  margin: 0;
  font-family: var(--font-ar-serif);
  font-size: 1.35rem;
  color: var(--olive-900);
}
.menu-card .price{
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.menu-card .price::after{
  content: "";
  display: inline-block;
  width: .75em;
  height: .85em;
  background-color: currentColor;
  -webkit-mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
          mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
}
.menu-card .body p{
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  font-size: .9rem;
  color: var(--olive-700);
  opacity: .75;
}

/* ================ BOXES ================ */
.box-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1400px;
}
.box-card{
  background: #fff;
  border-radius: 28px;
  padding: 20px 20px 24px;
  box-shadow: 0 10px 30px rgba(33,31,32,.06);
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.box-card .body{ padding: 6px 4px 0; }
.box-card .row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.box-card:hover{
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 70px rgba(33,31,32,.14);
}
.box-card .badge{
  position: absolute;
  top: 22px; right: 22px;
  background: var(--olive-900);
  color: var(--cream-50);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  z-index: 2;
}
.box-card .media{
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  background: var(--cream-50);
}
.box-card .media img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.22);
  transform-origin: center 38%;
  transition: transform .7s var(--ease);
}
.box-card:hover .media img{ transform: scale(1.28); }
.box-card h3{
  margin: 0;
  font-family: var(--font-ar-serif);
  font-size: 1.35rem;
  color: var(--olive-900);
}
.box-card .body p{
  margin: 0;
  font-family: var(--font-en);
  font-style: italic;
  color: var(--olive-700);
  opacity: .75;
  font-size: .9rem;
}
.box-card .price{
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.box-card .price::after{
  content: "";
  display: inline-block;
  width: .75em;
  height: .85em;
  background-color: currentColor;
  -webkit-mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
          mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
}

/* ================ DRINKS ================ */
.drinks .drink-list{
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 30px 40px;
  box-shadow: 0 10px 30px rgba(33,31,32,.06);
}
.drink{
  display: grid;
  grid-template-columns: 52px auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(63,58,27,.12);
}
.drink:last-child{ border-bottom: none; }
.drink .thumb{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-50);
  position: relative;
  flex-shrink: 0;
}
.drink .thumb:empty{
  background: transparent;
}
.drink .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  transform-origin: center 45%;
}
.drink .ar{
  font-family: var(--font-ar-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--olive-900);
}
.drink .line{
  border-top: 2px dotted rgba(63,58,27,.22);
  min-width: 20px;
}
.drink .en{
  font-family: var(--font-en);
  font-style: italic;
  font-size: .9rem;
  color: var(--olive-700);
}
.drink .p{
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  min-width: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.drink .p::after{
  content: "";
  display: inline-block;
  width: .75em;
  height: .85em;
  background-color: currentColor;
  -webkit-mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
          mask: url("assets/ryal-symbol.svg") no-repeat center / contain;
}
.drink.feat{
  background: linear-gradient(90deg, rgba(63,58,27,.06), transparent);
  border-radius: 12px;
  padding-inline: 14px;
  margin-inline: -14px;
}
.drink.feat .p{ color: var(--olive-900); }

/* ================ MILK ================ */
.milk-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.milk{
  background: #fff;
  padding: 22px 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(33,31,32,.04);
  border: 1px solid rgba(63,58,27,.06);
  transition: all .4s var(--ease);
}
.milk:hover{
  transform: translateY(-4px);
  border-color: var(--olive-900);
  box-shadow: 0 20px 40px rgba(33,31,32,.1);
}
.milk .ar{
  font-family: var(--font-ar-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--olive-900);
}
.milk .en{
  font-family: var(--font-en);
  font-style: italic;
  font-size: .85rem;
  color: var(--olive-700);
  opacity: .75;
}

/* ================ OUTRO QUOTE ================ */
.outro{
  padding: 140px 20px 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(215,210,189,.35), transparent 70%);
}
.outro::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--olive-900));
  opacity: .4;
}
.outro-inner{
  text-align: center;
  max-width: 900px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.ornament{
  color: var(--olive-900);
  opacity: .55;
  line-height: 0;
}
.quote{
  font-family: 'Mirza', serif;
  font-weight: 400;
  font-style: normal;
  color: var(--olive-900);
  font-size: 35px;
  line-height: 1.4;
  letter-spacing: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 .35em;
  width: 100%;
  max-width: 720px;
}
.q-right{ justify-self: end; }
.q-left { justify-self: start; }
.q-word{
  display: inline-block;
}
.q-em{
  color: var(--accent);
  position: relative;
}
.outro-logo{
  width: 120px;
  height: auto;
  opacity: .5;
  display: block;
  margin-top: 10px;
}
.socials{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  background: #fff;
  color: var(--olive-900);
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid rgba(63,58,27,.12);
  box-shadow: 0 6px 20px rgba(33,31,32,.05);
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease);
  direction: ltr;
}
.social:hover{
  transform: translateY(-3px);
  background: var(--olive-900);
  color: var(--cream-50);
  box-shadow: 0 14px 30px rgba(63,58,27,.22);
}
.social svg{ flex-shrink: 0; }
@media (max-width: 480px){
  .social{ padding: 10px 16px; font-size: .85rem; }
  .social svg{ width: 18px; height: 18px; }
}

/* ================ RESPONSIVE ================ */
@media (max-width: 768px){
  .menu-section{ padding: 60px 5vw 30px; }
  .eyebrow{ font-size: 1.7rem; }
  .sec-head h2{ font-size: .85rem; letter-spacing: 5px; }
  .menu-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .menu-card{ flex: 0 1 calc(50% - 8px); min-width: 150px; }
  .menu-card h3{ font-size: 1.2rem; }

  .drinks .drink-list{ padding: 18px 14px; border-radius: 20px; }
  .drink{ grid-template-columns: 44px 1fr auto; gap: 10px; padding: 10px 0; }
  .drink .thumb{ width: 44px; height: 44px; }
  .drink .line, .drink .en{ display: none; }

  .outro{ min-height: 60vh; padding: 70px 20px 90px; }
}

@media (max-width: 420px){
  .menu-card{ flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition-duration: .01ms !important; }
  .reveal{ opacity: 1; transform: none; }
}
