/* ===========================================
   CHEF AHMAD RESTAURANT (منيو)
   Palette based on the restaurant's own logo (teal / gold / cream)
=========================================== */
:root {
  --teal:         #167f78;
  --teal-dark:    #0d5a55;
  --teal-light:   #1fa89f;
  --gold:         #c9a06a;
  --gold-light:   #e3c793;
  --cream:        #f7f3ea;
  --cream-alt:    #f0ead9;
  --ink:          #23312f;
  --line:         rgba(22, 127, 120, .18);

  --font: 'Cairo', 'Tajawal', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* faint tone-on-tone pattern sampled from the real reference artwork */
.hero__pattern,
.menu-section__pattern,
.footer__pattern {
  position: absolute;
  inset: 0;
  background: url('assets/pattern-cream.jpg');
  background-size: 340px 340px;
  opacity: .9;
  pointer-events: none;
  z-index: 0;
}
.footer__pattern { opacity: .5; }

/* ===========================================
   TOPBAR
=========================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 90, 85, .95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 199, 147, .25);
}
.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar__brand img { height: 46px; width: auto; display: block; }
.topbar__nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.topbar__nav::-webkit-scrollbar { display: none; }
.topbar__nav a {
  color: rgba(255, 255, 255, .85);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}
.topbar__nav a:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* ===========================================
   HERO
=========================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 20px 40px;
  text-align: center;
  isolation: isolate;
  background: var(--cream);
}
.hero__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.hero__logo {
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0 auto 14px;
}
.hero__title {
  font-weight: 900;
  font-size: clamp(30px, 6vw, 44px);
  color: var(--teal-dark);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.hero__subtitle {
  font-size: 15.5px;
  color: rgba(35, 49, 47, .78);
  max-width: 480px;
  margin: 0 auto 22px;
  line-height: 1.8;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: var(--teal-dark);
  margin-bottom: 24px;
  font-weight: 600;
}
.hero__meta i { margin-inline-end: 6px; color: var(--gold); }
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(22, 127, 120, .32);
  transition: transform .3s, background .3s;
}
.hero__cta:hover { background: var(--teal-dark); transform: translateY(-2px); }
.hero__cta i { font-size: 17px; }

.hero__pricing-note {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cream-alt);
  border: 1px solid var(--line);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 999px;
}
.pricing-pill i { color: var(--gold); }

/* ===========================================
   MENU SECTIONS
=========================================== */
.menu-section {
  position: relative;
  overflow: hidden;
  padding: 50px 20px;
  border-top: 1px solid var(--line);
  isolation: isolate;
  background: var(--cream);
}
.menu-section--alt { background: var(--cream-alt); }

.menu-section__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* photo + content layout: side-by-side on desktop, photo stacked above on mobile */
.menu-section__layout {
  display: flex;
  align-items: center;
  gap: 44px;
}
.menu-section__photo {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 16px 36px rgba(13, 90, 85, .22);
}
.menu-section__photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-section__content { flex: 1 1 380px; min-width: 0; }
.menu-section__content .menu-block__title,
.menu-section__content .menu-cols-label { text-align: initial; }

@media (min-width: 761px) {
  .menu-section__layout--flip { flex-direction: row-reverse; }
}

@media (max-width: 760px) {
  .menu-section__layout { flex-direction: column; gap: 24px; }
  .menu-section__photo { width: 170px; height: 170px; flex-basis: auto; }
  .menu-section__content { width: 100%; }
}

.menu-block__title {
  font-weight: 900;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--teal-dark);
  margin-bottom: 6px;
  text-align: center;
}

.menu-cols-label {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--line);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .01em;
}
.menu-cols-label span { width: 64px; text-align: center; }

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  font-size: 15px;
}
.item-name {
  font-weight: 700;
  color: var(--ink);
}
.item-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(35, 49, 47, .28);
  margin-bottom: 5px;
  min-width: 14px;
}
.price-pair {
  display: flex;
  gap: 12px;
  direction: ltr;
  unicode-bidi: embed;
}
.price-pair span {
  width: 64px;
  text-align: center;
  font-weight: 800;
  white-space: nowrap;
}
.price-out { color: var(--teal); }
.price-in { color: var(--gold); }

/* ===========================================
   FOOTER
=========================================== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 50px 20px 30px;
  text-align: center;
  background: var(--teal-dark);
  color: #fff;
  isolation: isolate;
}
.footer__inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.footer__logo { width: auto; max-width: 170px; height: auto; margin: 0 auto 18px; }
.footer__address,
.footer__phone {
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 8px;
}
.footer__address i, .footer__phone i { color: var(--gold-light); margin-inline-end: 6px; }

.footer__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 22px;
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  transition: background .3s, color .3s, transform .3s;
}
.footer__social a:hover { background: var(--gold); color: var(--teal-dark); transform: translateY(-3px); }

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .55);
  direction: ltr;
}
.footer__credit { display: inline-flex; align-items: baseline; gap: 5px; }
.footer__credit-label { font-style: italic; }
.footer__credit a {
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.footer__credit a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer__sep { color: rgba(255, 255, 255, .3); }

/* ===========================================
   FLOATING CALL BUTTON
=========================================== */
.fab-call {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(22, 127, 120, .45);
  animation: fabPulse 2.4s ease-in-out infinite;
  transition: transform .3s, background .3s;
}
.fab-call:hover { background: var(--teal-dark); transform: scale(1.08); animation: none; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(22, 127, 120, .45), 0 0 0 0 rgba(22, 127, 120, .45); }
  50%      { box-shadow: 0 10px 30px rgba(22, 127, 120, .45), 0 0 0 14px rgba(22, 127, 120, 0); }
}
@media (max-width: 480px) {
  .fab-call { width: 52px; height: 52px; font-size: 21px; bottom: 16px; left: 16px; }
}

@media (max-width: 480px) {
  .menu-cols-label span,
  .price-pair span { width: 54px; }
}

/* ===========================================
   SCROLL-IN ANIMATION
   Progressive enhancement only: JS adds ".js-anim" to <body> once it
   confirms IntersectionObserver support, THEN the hidden/offset state
   below applies. Without JS (or on failure) everything just stays
   visible — content is never gated behind script execution.
=========================================== */
.js-anim .anim-block {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .28, 1);
}
.js-anim .anim-block.is-visible {
  opacity: 1;
  transform: none;
}

.js-anim .anim-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .8, .28, 1);
  transition-delay: var(--anim-delay, 0ms);
}
.js-anim .anim-block.is-visible .anim-item {
  opacity: 1;
  transform: none;
}

.menu-list li { transition: background-color .25s ease; border-radius: 8px; }
.menu-list li:hover { background-color: rgba(201, 160, 106, .1); }

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