/* Lilisch Secret — palette from logo */
:root {
  --teal: #1b818f;
  --teal-deep: #146a75;
  --teal-soft: #d7ebee;
  --terracotta: #ca7543;
  --terracotta-deep: #a85a2e;
  --cream: #f7f1e8;
  --cream-deep: #ede2cf;
  --ink: #1c1a17;
  --muted: #6b6560;
  --line: rgba(28, 26, 23, 0.1);
  --white: #fffcf8;
  --shadow: 0 18px 50px rgba(28, 26, 23, 0.08);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
  --header-h: 4.5rem;
  --max: 1120px;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Decorative wave under section titles */
.wave {
  display: block;
  width: 42px;
  height: 10px;
  margin-top: 0.55rem;
  color: var(--terracotta);
}
.wave svg { width: 100%; height: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(20, 106, 117, 0.25);
}
.btn-primary:hover { background: var(--teal); }
.btn-accent {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(202, 117, 67, 0.28);
}
.btn-accent:hover { background: var(--terracotta-deep); }
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid rgba(27, 129, 143, 0.35);
}
.btn-ghost:hover { background: var(--teal-soft); }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28, 26, 23, 0.04);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(28, 26, 23, 0.1);
}
.brand-text {
  display: none;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal);
}
.brand-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
}
.nav-desktop {
  display: none;
  gap: 1.75rem;
  justify-self: center;
}
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.25rem 0;
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--ink); }
.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.header-cta {
  justify-self: end;
  display: none;
}
.menu-toggle {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { width: 100%; margin-top: 1rem; }

@media (min-width: 860px) {
  .brand-text { display: flex; }
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ========== HOME ========== */
.home-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(27, 129, 143, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 85%, rgba(202, 117, 67, 0.12), transparent 50%),
    var(--cream);
}
.home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 0 4rem;
}
.home-hero {
  width: min(100% - 2rem, 720px);
  text-align: center;
  animation: rise 900ms cubic-bezier(.22,1,.36,1) both;
}
.home-logo {
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: soft-float 5.5s ease-in-out infinite;
}
.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.home-hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.home-hero .lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: rise 900ms cubic-bezier(.22,1,.36,1) 120ms both;
}
.home-note {
  margin-top: 2rem;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--teal-deep);
  animation: rise 900ms cubic-bezier(.22,1,.36,1) 220ms both;
}
.home-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ========== MENU PAGE ========== */
.menu-hero {
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.menu-hero-copy .eyebrow { margin-bottom: 0.65rem; }
.menu-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.menu-hero-copy p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.25rem;
}
.menu-hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}
.menu-hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.scribble {
  position: absolute;
  left: -0.5rem;
  bottom: 8%;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--teal-deep);
  transform: rotate(-6deg);
  background: rgba(247, 241, 232, 0.85);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  pointer-events: none;
}
.scribble svg {
  position: absolute;
  right: -42px;
  top: -8px;
  width: 48px;
  height: 36px;
  color: var(--terracotta);
}

@media (min-width: 860px) {
  .menu-hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 3.25rem 0 2.5rem;
    gap: 3rem;
  }
  .menu-hero-visual { justify-self: end; width: min(100%, 420px); }
  .scribble { left: -1.5rem; bottom: 12%; font-size: 1.5rem; }
}

/* Category bar */
.cat-bar-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(247, 241, 232, 0.94);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.cat-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 76px;
  padding: 0.45rem 0.65rem 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.cat-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.cat-btn:hover { color: var(--ink); }
.cat-btn.is-active {
  color: var(--teal-deep);
  border-bottom-color: var(--terracotta);
}

/* Sections */
.menu-sections { padding: 2rem 0 6.5rem; }
.menu-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: calc(var(--header-h) + 5.5rem);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.section-head .view-all {
  color: var(--terracotta);
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}
.section-head .view-all:hover { text-decoration: underline; }

.item-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 760px) {
  .item-grid.cols-2 { grid-template-columns: 1fr 1fr; gap: 1.35rem 2rem; }
}

.menu-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem 0.95rem;
  align-items: start;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child { border-bottom: 0; padding-bottom: 0; }
.menu-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--cream-deep);
}
.menu-item .meta { min-width: 0; }
.menu-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.menu-item .price {
  font-weight: 700;
  color: var(--terracotta);
  font-size: 0.95rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* List + image layout (sides/beverages) */
.split-section {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
.split-section .list-items .menu-item {
  grid-template-columns: 1fr auto;
}
.split-section .list-items .menu-item img { display: none; }
.split-feature {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 220px;
  background: var(--cream-deep);
}
.split-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}
@media (min-width: 860px) {
  .split-section {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

/* Dessert cards */
.dessert-row {
  display: grid;
  gap: 1.15rem;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.dessert-card {
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.dessert-card img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
}
.dessert-card .body { padding: 0.95rem 1rem 1.15rem; }
.dessert-card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.dessert-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.dessert-card .price {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--terracotta);
  font-weight: 700;
}
@media (min-width: 900px) {
  .dessert-row {
    grid-auto-flow: unset;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

/* Mobile accordion for lower sections */
.accordion-trigger {
  display: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.accordion-trigger .left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.accordion-trigger .icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}
.accordion-trigger .icon-bubble svg { width: 20px; height: 20px; }
.accordion-trigger h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.accordion-trigger .chevron {
  transition: transform 200ms ease;
  color: var(--muted);
}
.menu-section.is-collapsed .accordion-trigger .chevron { transform: rotate(-90deg); }
.menu-section.is-collapsed .section-body { display: none; }

@media (max-width: 759px) {
  .menu-section.accordion .section-head { display: none; }
  .menu-section.accordion .accordion-trigger { display: flex; }
  .menu-section.accordion { margin-bottom: 0.25rem; }
  .menu-section.accordion .section-body { padding: 1.15rem 0 1.5rem; }
}

/* Sticky mobile CTA */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(247,241,232,0.98), rgba(247,241,232,0.92) 70%, transparent);
  display: block;
}
.mobile-cta .btn { width: 100%; }
@media (min-width: 860px) {
  .mobile-cta { display: none; }
  .menu-sections { padding-bottom: 3.5rem; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  padding: 2.25rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.footer-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-item strong { color: var(--ink); font-weight: 650; }
.footer-item svg {
  width: 18px; height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}
.socials { display: flex; gap: 0.75rem; align-items: center; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  transition: background 160ms ease, color 160ms ease;
}
.socials a:hover { background: var(--teal); color: var(--white); }
.socials svg { width: 16px; height: 16px; }
.footer-mark {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  opacity: 0.08;
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 8rem);
  color: var(--ink);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: center;
  }
}

/* Filter hide */
.menu-section.is-filtered-out { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Menu data-driven extras */
.menu-loading {
  padding: 2rem 0;
  color: var(--muted);
  text-align: center;
}
.section-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--teal-soft), var(--cream-deep));
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
}
.menu-item.no-photo {
  grid-template-columns: 72px 1fr auto;
}
.item-grid.list-style .menu-item {
  grid-template-columns: 1fr auto;
}
.item-grid.list-style .item-thumb,
.item-grid.list-style .menu-item > img {
  display: none;
}
.item-grid.cols-1 { grid-template-columns: 1fr; }
.hero-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-hero-visual img { border-radius: 0; box-shadow: none; }
.talabat-link {
  margin-left: 0.5rem;
  color: var(--terracotta);
  font-weight: 700;
}
.talabat-link:hover { text-decoration: underline; }
.price {
  font-variant-numeric: tabular-nums;
}
